Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
binaryjc opened this issue Oct 9, 2023 · 0 comments

Comments

@binaryjc
Copy link

binaryjc commented Oct 9, 2023

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*\\$).+" } },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant