The term
decorator disqualifies a respondent when a specific list option is selected.
1. Are you over 18?
type: radio
1. Yes
2. No {term: y}
Tip! The qualify
decorator is the opposite of term
and may be preferable to match logic specified in a client-copy of a survey. Note, the qualify: y
and term: y
decorators are opposing functions and should not be applied to the same question/variable.
Details
- Place a
term
decorator on an inline list option or a set list (standalone list) option to terminate any respondent who selects the option. - The
term
decorator accepts the input of 'y' or a custom text description (e.g.,term: Under 18
) to specify a custom termination reason in reports. - If
term: y
is used, the termination reason defaults to the question text as the option description and the question ID as the option ID in reporting. - If a list with a
term
decorator is reused, such as a set list or a derived list, the termination rule persists across questions unless explicitly overwritten. - The
term
decorator can also work with deferred termination.
Tip! For complex termination logic or greater flexibility, use the termif
tag. This is ideal for scenarios with multiple term
decorators and custom text, termination logic involving multiple questions, or when you don't want termination rules to persist across questions using the same list.
Additional examples
Customizing termination text
To customize the termination text for reports and exports, replace 'y' with your desired text.
1. Are you over 18?
type: radio
1. Yes
2. No {term: Under 18yo}
Comments
0 comments
Please sign in to leave a comment.