Hello people!
I have a problem with the dropdown component. My component is initially initialized with the value of a null variable, but when I change it to a valid value according to the range, it works normally, but when I click on the selection option (placeholder), I get the following error
Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error in rule 'interface' at function a!dropdownField [line 1098]: A dropdown component [label="Estado"] has an invalid value for "value". All selected values must be present in the choiceValues array, but value was and choiceValues was AC; AL; AM; AP; BA; CE; DF; ES; GO; MA; MG; MS; MT; PA; PB; PE; PI; PR; RJ; RN; RO; RR; RS; SC; SE; SP; TO.
The variable has a null value and the component is understanding it as an invalid value.
Can anyone help me?
Discussion posts and replies are publicly visible
Please check the variable you are using to initialize the dropdown component has a valid value that is present in the choiceValues array. If the variable can be null, you may need to handle this case separately, such as by setting a default value or displaying a placeholder option.
Thank you!