Sign in to Community
Sign in to view all badges
I have a requirement of having conditional drop down list - for e.g. there are two drop downs adjacent to each other
city - based on the selection for country appropriate state for that country selected from the drop down
for e.g. we have two country China and India
Country - India China
City - (Mumbai , Delhi (belongs to country India)) and (Beijing, Shanghai (belongs to country China))
So requirement is when user selects India as country from drop down for country he should only get Mumbai and Delhi as drop down value for city and not Shanghai & Beijing
Similarly when he chooses China he should get city drop down values as Shanghai & Beijing and not (Mumbai and Delhi).
Please provide a sample scripting code. Country is bound by dynamic scripting.
I attached a sample with a drop-down for Canada and the United States, linked to a second drop-down with provinces and states.