Appian Community and Appian Academy are being upgraded. From July 24–August 3, the Appian Community will be in read-only mode. During this time, the site will be read-only and user registration will be disabled. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!
The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.
Hi All,
I have state and county drop downs when changed states loading respective county in 2nd dropdown i.e.county dropdown.
When i selected county value and tried change state value, getting error as -
intterface Definition: Expression evaluation error at function a!dropdownField [line 76]: A dropdown component [label=“County”] has an invalid value for “value”. All selected values must be present in the choiceValues array, but value was Beaver and choiceValues was Carson City; Churchill; Clark; Douglas; Elko; etc...
saveInto: {ri!PTS.state,a!save(ri!target:PTS.County,value:null)}
Thanks,
Deepak
Discussion posts and replies are publicly visible
Hi,
I think you are not using a!save() function in the correct way. Try replacing your a!save() function with this
a!save(ri!PTS.County,null)
And this should solve the problem.
Thanks,Harshit
If you haven't seen it already, the documentation page on Cascading Dropdowns is pretty similar to what you're doing here. The main tricky part is that if your county depends on the state, you always need to clear out the selected county when a different state is selected (and that's what he other poster suggested here).