Skip to main content
March 2, 2022
Solved

Dropdown data load issue

  • March 2, 2022
  • 7 replies
  • 0 views

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

Best answer by mikes0011

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]

7 replies

mikes0011
Brainy
March 2, 2022

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
March 2, 2022

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
March 2, 2022

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