The if not set tag is used to set a value to open-ended fields that are left unfilled, similar to if blank.
1. Which of these activities do you do for exercise?
type: checkbox
1. Running
2. Walking
3. Weight lifting
4. Biking
5. Playing sports
6. Swimming
7. Yoga
2. What percent of your workouts are spent on each activity?
instructions: Your total should add to 100%.
type: integer table
required: n
size: 3
range: 0-100
if not set: 0
postfix: %
show column total: Total: {total: 100}
rowsfrom: Q1
Details
- The
if not settag works with open-ended text questions and table rows, as well as in aset defaultsdefinition. - The input to
if not setcan be any positive integer or '0', and is most commonly '0'. The input value is set in the data once the question is successfully submitted. if not setis recommended for more advanced reporting functionality like averages and situations where a blank is not the same as a '0'.-
The
if not settag is most commonly used with sum-to-100 tables, as shown above.
Tip! When a question is being answered, if blank only acts on fields that are seen by the respondent, while if not set acts on all possible fields, regardless of whether or not they are seen.
Comments
0 comments
Please sign in to leave a comment.