Hi,
I have two drop downs.
Upon selection in first Drop Down a list of values getting populated in 2nd Drop down.
First time when I am selecting value in 1st DD it is working fine in 2nd DD.
But when I am changing the choice in First DD I am getting below error.
I have checked data are present correctly in DB. It looks like upon changing selection in 1st DD the values are not getting changed in 2nd DD or refreshed.
Could some help me please?
Error:
Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error at function a!dropdownField [line 38]: A dropdown component [label="Sub Employee types"] has an invalid value for "value". All selected values must be present in the choiceValues array, but value was Cafeteria Admin and choiceValues was Not Availablexx.
Thanks
Faisal
Discussion posts and replies are publicly visible
You need to include an extra a!save() statement within the saveInto of your first dropdown to clear out the value selected for the second dropdown when the value for the first dropdown is changed. What you're experiencing is expected behavior as the 2nd DD will continue to point at a specific value even after that value is no longer contained in its list of allowed values.
Agreed - this recipe demonstrates exactly how to do this!
Hi Mike/Peter,
you Made my day !
Thank you so much.
I achieved my goal.