Use term after to choose a point in the survey where respondents should be terminated, rather than have them terminate immediately. This allows the survey to collect additional data before terminating respondents.
GEN. Are you...
type: radio
1. Male
2. Female
3. Rather not say {term after: QZIP}
AGE. How old are you?
type: integer
range: 0-99
term after: QZIP {if $QAGE<18}
ZIP. What is your ZIP Code?
type: uszip5In this example, respondents who select "Rather not say" at QGEN and/or who enter a number less than "18" at QAGE will terminate after answering QZIP.
Details
-
term aftercan be applied as a tag, a decorator, or included in aset termwidget. -
term afterrequires a label (a question ID, group name, page label, etc.). If a group name is provided, the respondent will terminate after completing all the questions in the group. -
term afterterminates respondents after the target is answered. Be sure to setterm aftertargets that will be seen by all respondents. -
term aftercan work in conjunction with immediate terminations anddefer term. - Unlike
defer term, which sets a term point for all terminations in the survey,term aftersets the term point for a specific termination only.
Decorators
The following decorators can be applied with term after.
| Decorator | Description |
id |
Specifies the option ID in the tracking variable disp. If not specified, it defaults to the widget ID where term after is placed. |
text |
Specifies the option description in the tracking variable disp. If not specified, it defaults to the question or option text. |
Additional examples
With 'term if' or 'term' decorator
term after can be used in the same question as term if or a term decorator to specify a delayed termination for one response while also allowing for an immediate termination for another.
3D. Into which of the following age groups do you fall?
type: radio
term if: anyChecked($Q3D,1) {id: Q3AGE1} {text: Under 25}
term after: QZIP {if anyChecked($Q3D,3)} {id: Q3AGE2} {text: 45 or older}
1. Under 25
2. 25 - 44
3. 45 or older
With 'set term'
term after can be included as a tag on a set term widget. The condition and text tags are already required for set term, so you only need to specify the termination point. Both of the formats below are acceptable.
set term: GEN_AGE
condition: anyChecked($QGEN,99) and $QAGE<=18
text: Prefer not to answer gender and 18 or under
term after: QZIP
set term: GEN_AGE
term after: QZIP {if anyChecked($QGEN,99) and $QAGE<=18}
text: Prefer not to answer gender and 18 or under
Using 'set term' with a table as the target question
To term after a table, use the leading 'T' instead of the leading 'Q'.
1. Is your child a boy or girl?
type: radio
1. Boy
2. Girl
term after: T2 {if anyChecked($Q1,1)}
2. What do you feel about the following colors?
type: radio table
1. Hate it
2. Love it
rows:
1. Blue
2. Red
Comments
0 comments
Please sign in to leave a comment.