The term if
and term text
tags work the same within tables as they do within standalone questions. There are a couple of differences between standalone questions and tables though that should be noted:
- If
term if
is used, theterm text
tag must also be present. If not present, the survey source code will not compile and will present an error indicatingterm text
is missing. - The option ID created in the
disp
variable is prefixed by a 'T' instead of a 'Q' since tables are denoted as such in the system. This can be written in two separate lines using thetermif
andterm text
tags, or in one line withtermif: condition here {text: explanation here}
.
Note: If multiple termination points need to be defined for a single table widget, the {id: }
decorator must be included on the termif
tags. See this example in the termif
article for more information.
Table termination example
In the table below, respondents who indicate options 1 and 2 for row 1 are terminated:
This table code creates an option T1 for the disp
variable. The term text for this option is, "Not a decision Maker."
Comments
0 comments
Please sign in to leave a comment.