I have two dropdowns in my interface. Based on first selected dropdown second dropdown has to chaange.
like, First dropdown is 'Country' . If i select the country it should display list of states for that country.
I have created multiple constants for states for each and every country.
My constants are
APPNAME_COUNTRY - List of countries
APPNAME_COUNTRYNAME1 - list of states for that country
APPNAME_COUNTRYNAME2 - List of states for countryname2
So if i select country i have to populate another dropdown (states) in Interface. So how can i call the constants dynamically. Below is the validation i tried but no luck. Please help.
Update the States drop-down choiceLabels / choiceValues array in Country drop-down saveInto. Set showWhen for States dropdown to display if a values is selected in Country
Please refer for example : community.appian.com/.../cascade-dropdown
I tried but i can use this only when i have two lists in first dropdown. But i have more than 2. In this way it is not allowing more than one IF condition.
In this case, you have to maintain States constant for each country. Based on selected country, you have to map the corresponding States constant to the variable of choiceLabels/ChoiceValues in Country dropdown SaveInto
I suggest you to go for a table option if you are having many Countries
Discussion posts and replies are publicly visible
© 2020 Appian. All rights reserved.