Stream: implementers
Topic: Sample JSON for enableWhen
 SAM TSAI (Jul 16 2021 at 21:01):
 SAM TSAI (Jul 16 2021 at 21:01):
What is the correct enableWhen JSON ?
"enableWhen": [
              {
                "operator": "=",
                "question": "Q1",
                "answerBoolean": "true"
              }
            ],
OR
"enableWhen": [
              {
                "operator": "=",
                "question": "Q1",
                "answer": "true"
              }
            ],
 Lloyd McKenzie (Jul 16 2021 at 21:04):
 Lloyd McKenzie (Jul 16 2021 at 21:04):
answerBoolean
 SAM TSAI (Jul 16 2021 at 21:12):
 SAM TSAI (Jul 16 2021 at 21:12):
How about this one ?
"enableWhen": [
              {
                "operator": "exists",
                "question": "Q1",
                "answerBoolean": "false"
              }
            ],
Q1. Is it required to provide "answerBoolean" for exists operator ? 
Q2. This EnableWhen mean when Q1 does not have answer, enable this question. Correct ?
 Lloyd McKenzie (Jul 16 2021 at 22:10):
 Lloyd McKenzie (Jul 16 2021 at 22:10):
1 - yes
2 Yes
Last updated: Apr 12 2022 at 19:14 UTC
 
                