This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help
When respondents answer a Snap WebHost survey, you can specify the website that they are taken to when they finish. You can specify different websites to go to if:
You can set up the website address to be specific to a respondent by including one or more survey variables in it.
You can either:
Using variables in a website address
You can pass the content of variables into the website address by using the question name enclosed in curly brackets. The question names are listed in the variable window in Snap. By default they tend to be Q1, Q2 etc, but you can change them.
The data that is inserted in place of the question name depends on the type of question:
Response type |
Information used |
Quantity, Date, Time or Literal response |
Respondent's answer |
Single-response |
Code label |
Multiple responses |
The response code labels are joined into a list (so responses of "bee", "wasp", "fly" would become "bee, wasp and fly") |
Note for advanced users using a code label as a web address: Snap converts the code labels into HTML. This means that if you want special characters such as & to appear in the web address, you should use the Insert HTML option to insert those characters in the label.
Passing information to a web page
Websites that use scripting, such as Active Server Pages (ASP), can receive variables in the web address. If the website that you are directing respondents to can do this, you can send it information to use. For example. if the website will display a welcome message into which it inserts the viewer's given name (gn) and family name (fn), and you ask respondents for their given name (stored in q1) and family name (stored in q2), you could pass them like this
http://www.yourwebsite.com/welcome?gn={q1}&fn={q2}.
If you need to pass variables to a website, then talk to your website designer or programmer about what information is needed, and what format it must be in.
Variables can be passed to other Snap WebHost surveys using the updatesurvey.asp page.
|
See Also |