Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > How to Fill the second dropdown based on First dropdown Selection in custom document type View modes: 
User avatar
Member
Member
attar.dastgir-gmail - 8/29/2012 5:42:04 AM
   
How to Fill the second dropdown based on First dropdown Selection in custom document type
Hi,
We Have created one custom Document type. In that we have two fields country and city.
Both the fields are dropdown list and bind the data from table using SQL query.

But now we want after selecting the country from country dropdown. the city dropdown should be filled the city name of that particular country based on countryId.

how can we achieve this.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/29/2012 6:12:33 AM
   
RE:How to Fill the second dropdown based on First dropdown Selection in custom document type
Hi,

One option is to use already present country selector form control or, second option is to create a custom form control. This custom form control will consist of two drop down lists. The first drop down will be filled with the countries as usual. The second drop down will be filled with the data in the event of selection change of the first drop down based on the new selected item/index in the first drop down.

Best regards,
Juraj Ondrus