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.