ember-caluma icon indicating copy to clipboard operation
ember-caluma copied to clipboard

related to feat: enable JEXLs for options in choice and multiple choice questions - some jexl expressions are raising an error

Open maria-pw opened this issue 1 week ago • 0 comments

When using isHidden JEXL checks for options, some jexl expressions are raising non_field_errors

Example:

isHidden JEXL expression for option:

!('question-option-slug-1' in 'question-slug'|answer([]))

when attempting to select option, raises:

message: "{'non_field_errors': [ErrorDetail(string='Invalid value question-option-slug-1. Should be of type str and one of the options question-option-slug-2, question-option-slug-3,  code='invalid')]}" path: ['saveDocumentStringAnswer']

while other expressions seem to work as expected:

('question-option-slug-1' in 'question-slug'|answer([])) 'question-option-slug-1' in 'question-slug'|answer([])

maria-pw avatar Feb 21 '25 09:02 maria-pw