survey_kit icon indicating copy to clipboard operation
survey_kit copied to clipboard

Conditional rule does not trigger when selecting multiple answer using json tasks

Open binaryjc opened this issue 8 months ago • 0 comments

I have this issue with the conditional rule for a multiple type question. If i select multiple answers it proceeds to the next stepidentifier. This is my rule { "type": "conditional", "triggerStepIdentifier": { "id": "15" }, "values": { "9": "16", "1": "17", "2": "17", "3": "17", "4": "17", "5": "17", "6": "17", "7": "17", "8": "17" } },

This is the steps. step 17 is a different question i did not include it here. 16 is a text input if they answered "Others" on step 15. but when selecting multiple answers on step 15 that is not "Others" it still proceeds to step 16. It should skip 16 and proceed to 17 base on the conditional rule. { "stepIdentifier": { "id": "15" }, "type": "question", "title": "Where did you learn about it? (Please select all that applies.)?", "answerFormat": { "type": "multiple", "textChoices": [ { "text": "Poster", "value": "1" }, { "text": "Teacher/School", "value": "2" }, { "text": "Friend/Acquaintance", "value": "3" }, { "text": "Parents/Sister/Brother/Relatives", "value": "4" }, { "text": "Official Facebook Page", "value": "5" }, { "text": "Website", "value": "6" }, { "text": "Other internet sites", "value": "7" }, { "text": "Satellite Offices", "value": "8" }, { "text": "Others, please specify", "value": "9" } ] } }, { "stepIdentifier": { "id": "16" }, "type": "question", "title": "Where did you learn about it? Please specify", "answerFormat": { "type": "text", "maxLines": 5, "validationRegEx": "^(?!\\s*\\$).+" } },

binaryjc avatar Oct 09 '23 02:10 binaryjc