Note: Most of the functionality described in this article is now handled by auto redirect.
The end survey widget is used to end interviews. It assigns respondents a final status and can optionally redirect them to a different website.
end survey status: T redirect: https://www.mypanelcustomredirectpages.com/terminate/
When defining an end survey widget you must include either a status or terminate tag. Conditions can be added as needed.
Example
end survey
status: <<END
if ($Q1==1) {'C'}
elsif ($Q1==2) {'T'}
END
redirect: <<END
if ($Q1==1) {'https://www.mypanelcustomredirectpages.com/complete/'}
elsif ($Q1==2) {'https://www.mypanelcustomredirectpages.com/terminate/'}
END
Tags
| Tag | Description |
|---|---|
message |
Displays a custom message to the respondent. |
redirect |
Specifies a web address where the browser should be redirected when a respondent reaches the end of a survey. This tag accepts a text string, a heredoc, and logical statements as input. |
set status |
Defines a custom respondent status that can be referenced with the |
status |
Specifies the respondent status, using one of the default statuses or a custom status defined with |
terminate |
Accepts 'y'/'n' input. If set to 'y', it marks the respondent status as terminated ('T'). |
Tip! Setting respondents to status 'I' (Initiated) via the end survey widget will place those respondents at the beginning of the survey if they re-enter.
Additional examples
'terminate: y' and 'redirect'
If you are using the end survey widget to terminate respondents, you can also use terminate: y, which is the equivalent to set status: T.
start group condition: anyChecked($QSAMP,1) and (noneChecked($QCOMP_SEL)
end survey terminate: y redirect: https://www.mypanelcustomredirectpages.com/terminate/ end group
Since the end survey widget would be applied to all respondents, a condition tag on a start group is often used to ensure the terminated status is only applied to specific respondents.
Tip! The end survey widget may coexist with the auto redirect system. In the case that end survey has a redirect, it will override the redirects on file in the auto redirect system.
Custom status and message
You can create custom statuses with the set status widget and reference them by applying the status tag to the end survey widget.
You can also add the message tag to the end survey widget to show a custom message to respondents.
set status V. Attention Checks 1. What color is the sky? type: radio 1. blue 2. red start group: ATT_END_SURVEY condition: anyChecked($Q1,2) end survey status: V message: You will not be asked to complete the full survey. Thank you for your time. end group: ATT_END_SURVEY ... survey continues here
Comments
0 comments
Please sign in to leave a comment.