Hi. I have a dropdown list that fails when selecting one of the values. Here i

Hi. I have a dropdown list that fails when selecting one of the values. Here is the SAIL:
a!dropdownField(
label: "Regulation",
labelPosition: "ABOVE",
placeholderLabel: "--- Select a Value ---",
choiceLabels: rule!PMA_GetAllRegulations().name,
choiceValues: rule!PMA_GetAllRegulations().id,
value: ri!property.regulationId,
saveInto: ri!property.regulationId,
validations: {}
),

This is the error message:

Expression evaluation error at function a!dropdownField [line 136]: A dropdown component [label=“Regulation”] has an invalid value for “value”. All selected values must be present in the choiceValues array, but value was 1 and choiceValues was 1; 2.

The value 1 is correct and it exists in the choiceValues, so I do not understand why it fails.
Thanks
Bjarte

OriginalPostID-208351

OriginalPostID-208351

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data