The if blank
tag is used to set a value to open-ended fields that are left unfilled, similar to if not set
.
3. Enter the percent of time you spend on each activity.
instructions: Ensure your total adds to 100%.
type: integer table
required: n
range: 0-100
if blank: 0
required: n
postfix: %
sct: Total: {total: 100} {message: Please ensure that your total is 100%.}
rows:
1. Running
2. Walking
3. Lifting weights
4. Biking
5. Playing sports
6. Swimming
7. Yoga
Details
- The
if blank
tag works with open-ended text questions and table rows, as well as in aset defaults
definition. - The input to
if blank
can 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 blank
is recommended for more advanced reporting functionality like averages and situations where a blank is not the same as a '0'. - The
if blank
tag 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.