This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help
When you publish the survey in Snap you can define a web address that the respondent is sent to when they click [Submit] or when they click [Save]. (See Setting where to go to after submitting a questionnaire in Snap WebHost.).
You can also specify a web address that respondents go to when a quota is met. You do this by setting a web address in the Set Up Quota dialog when you create the quota.
The URL may be to an external site or to a Snap WebHost site.
Using paradata within the URL (deprecated)
From Snap 11.10 onwards, you can use any Snap variable in the URL.This is now the recommended way to pass data onwards.
Previous versions only allowed you to use the respondent's username and the site ID using the special tags: [[:UserId:]] and [[:SiteId:]]. The rest of this page describes the deprecated use of these variables to assist in the maintenance of existing surveys.
It is recommended that you now use standard Snap variables instead.
If using the [[:UserId:]] and [[:SiteId:]] tags note:
To use these variables the Respondent and Site paradata variables must be enabled in the survey or the Include respondent details in survey data must be enabled in the Survey settings within Snap WebHost. If you have seeded data into these variables from a respondent database, these values can also be used.
Routing requests back to a third party panel (deprecated)
From Snap version 11.10 you can use any Snap variable within the web address that respondents are directed to when submitting, saving or exceeding a quota. The information below describes older methods that are maintained for backwards compatibility.
The information below covers a deprecated method
You can use paradata to route requests back to a third party panel.
For example, a panel has a callback URL at http://external.panel.com/surveyend.asp.
a = The action taken at the end of the survey (f, q or p for finish, quota hit or partial save).
u = The user name of the respondent.
p = The id of the panel.
To provide this information, you can:
The survey URL that a respondent clicks on will be something like:
http://snapwebhost.snapsurveys.com/s.asp?k=123456789&s=panelID&u=userID
Where panelID is the panel identifier supplied by the third party panel provider and userID is a unique identifier for that respondent.
If the Respondent and Site paradata are not enabled in the Snap WebHost survey, the "Include respondent details in survey data" must be enabled in the Survey settings within Snap WebHost).
Each of the three files listed above contains these URLs (where the callback URL is http://external.panel.com/surveyend.asp).
File |
Contains |
|---|---|
finish.uri |
http://external.panel.com/surveyend.asp?a=f&u=[[:UserId:]]&p=[[:SiteId:]] |
quotafull.uri |
http://external.panel.com/surveyend.asp?a=q&u=[[:UserId:]]&p=[[:SiteId:]] |
partial.uri |
http://external.panel.com/surveyend.asp?a=p&u=[[:UserId:]]&p=[[:SiteId:]] |
Notice the "a" variable is different each time.
When user "fred" finishes the survey they will be sent to the site specified in the "Web page after submit" in the survey properties. If this has not been set, they will be forwarded to the URL:
http://external.panel.com/surveyend.asp?a=f&u=fred&p=panel1234
If they hit a quota, they will be sent here:
http://external.panel.com/surveyend.asp?a=q&u=fred&p=panel1234