ember-caluma
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
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([])