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
Hi tiagosantos ,The error here describing that the value you are selecting must be from choice values, this occurs when the initial value for the displayValue is not null.You can try with 2 methods:
1. Use Property Function :
property(Your_Variable,null())
2. Use a!isNotNullOrEmpty (Preferred) :
if(a!isNotNullOrEmpty(Your_Variable),Your_Variable,null())
Thank you!!