The if not set
tag is used to set a value to open-ended fields that are left unfilled, similar to ifblank
.
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
size: 3
range: 0-100
ifnotset: 0
postfix: %
showcolumntotal: Total: {total: 100}
rowsfrom: Q1
Details
- The input to
if not set
can be any positive integer or '0', and is most commonly 0. The input value is set in the data once the question it is attached to validates successfully. if not set
is recommended for more advanced reporting functionality like averages and situations where a blank is not the same as a '0'.-
The
if not set
tag is most commonly used with sum-to-100 tables, as shown above. - Where
ifblank
only acts on fields that are seen by the respondent,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.