Skip to main content
Inspiring
Mar 2, 2022 8:21 PM UTC
Solved

Dropdown data load issue

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

mikes0011
mikes0011Answer
Brainy
Mar 3, 2022 5:24 PM UTC

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 [emoticon:c4563cd7d5574777a71c318021cbbcc8]

The Expression Guru

7 replies

mikes0011
Brainy
Mar 2, 2022 8:25 PM UTC

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.

The Expression Guru
Inspiring
Mar 2, 2022 9:17 PM UTC

Hi,

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

mikes0011
Brainy
Mar 2, 2022 9:19 PM UTC

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.

The Expression Guru