Hi,
I have a scenario like below.
I have a a!textField and I using this for searching the data and loading based on the output into a a!dropdownField.
This is working is fine for the first time when I searched by providing a text in the textField.
The issue is happening when I try to re-enter a new text in textField after selecting an item in the dropdown.
Error is saying, All selected values must be present in the choiceValues array.....
Is there away I have clear dropdown values after user is trying to search with new text in search.
Thanks in advance
Discussion posts and replies are publicly visible
In the saveInto parameter for your filter text field, add an additional a!save() statement to save a value of NULL into the variable holding the value for the dropdown.
Thanks for replying to my message.
Issue is still remain after using a!save
When initially when I search, data is loading into my dropdown and I am able to select.
But, now when I search with different search string then I am getting an error like below
We can tell from the error message that the dropdown's value variable has not been set to a NULL value yet. Please share the code for your filter text field (and maybe also the code for your dropdown for clarity reasons). Please be sure to use Insert --> Insert Code and paste any code into the Code Box.
Sorry, my code was in a different which I was unable to copy and paste.
Please refer the below attached screen shots for your reference.
Thanks.
You're not saving null into the correct value. The value parameter for your Dropdown is "ri!opinionData.submitter" but for some reason your text field is clearing out the value of "local!gdwSubmitterData" instead.
I got it what you are saying. This helps me. Really appreciate your help.
Cool, please let us know if it ends up working for you - and if/when it does, i'd appreciate a "verify answer" on any/all comments you found helpful