Stream: questionnaire
Topic: enableWhen with inverse rules
Roeland Luykx (Jan 26 2022 at 07:05):
Hi all
I have a questionnaire defining a question filled with values from a valueset and the possibility to select multiple values (CheckBoxes) from the valuesset.
as next a "warning text" defined in the questionniare as #display should be shown. this warning text should only be shown if values are selected "NOT" matching one or two possible values (i.e. values 1,2,3,4,5... in selection, if 2 and/or 4 is selected no warning should be shown, but if an other - 1,3,5.... is also selected the warning text has to be shown.)
i know i could define all values in enableWhen with behavior=any, but that could be a long list if the valueset has a lot of entries but only on a few there should nothing be shown.
does someone has a solution for this "inverse" enableWhen rule on multiselections?
Lloyd McKenzie (Jan 26 2022 at 16:11):
You could use the enableWhenExpression extension.
Brian Postlethwaite (Jan 27 2022 at 01:52):
You can use the != operator in combination with behaviour = all?
Last updated: Apr 12 2022 at 19:14 UTC