Details
-
Bug
-
Resolution: Unresolved
-
Neutral
-
None
-
2.7.8
-
None
-
None
Description
Issue description
When you have a form, which contains two different selection components and one of them has the "Multiple (select field only)" enabled, when you create a conditional step with all "AND" options (even for the multiple conditional field) then it is not properly resolved.
When a combination of OR AND or NOT operations are used, the conditional step works but when you use "AND" operation on a multi select field, it is not properly resolved.
Steps to reproduce
- Download the decoration my-decorator-module.zip
and paste it at your light modules folder (
/light-modules/my-decorator-module/decorations/mtk2/templates/pages)
or include at basic page template definition the form component:/mtk2/templates/pages/basic.yamlareas: main: availableComponents: form: id: form:components/form - Go to Pages-app and import the website.quizzShow.yaml file
- The structure is a parent quiz page with several children (pageA, pageB, pageC and pageD) that are the landing page depending on which options are selected on the quiz parent page form
- The form consists on two selection fields: optionA and optionC. The optionA is a multi select field with two options: optionA and optionB. The optionC field has only one option: optionC
- The logic applied at the conditional steps is:
- If optionA OR optionB are selected and NOT optionC -> go to pageA

- If optionA AND optionB are selected and nOT optionC -> go to PageB

- If NOT optionA NOT optionB AND optionC is selected -> go to pageC

- If optionA AND optionC are selected -> go to pageD

- If optionB AND optionC are selected -> go to pageD

- If optionA AND optionB AND optionC are selected -> go to pageD

- If optionA OR optionB are selected and NOT optionC -> go to pageA
Expected results
When a multi select field has all its options selected (AND operator), the conditional step is properly resolved
Actual results
When a field has multi select options on its field, the OR operator is properly resolved but the AND operator is not
Workaround
Do not use multi select option for the fields and implement 1:1 relation -> 1 field : 1 option
Development notes
N/A