getParm captures URL parameters from the survey entry URL (invite link) and populates data in the specified variable.
PANEL. Panel Identifier
invisible: y
type: radio
cvalue: getParm('pan')
1. Panel 1
2. Panel 2
Note: The newer method, url_param offers more flexibility and is preferred over getParm.
Details
-
getParmmust be placed on the first page of a study. -
getParmis used with thedvalueorcvaluetag. - It works for both closed-end (as shown above) and open-end data.
- It can be used multiple times on the same page with different variables.
Additional examples
To grab information from a survey entry URL using getParm, you must first set up a variable to capture the information and store it.
- Each individual parameter needs its own variable to capture the value.
- To capture multiple values from the same parameter, include the parameter multiple times in the survey entry link, each with a unique value. These values are then stored in a single multi-select variable.
Open-end data
Passing in a first name requires a type: text question to capture and store a string. In the example below, the letter 'n' is used for the first name parameter.
Example entry URL
http://servername.intellisurvey.com/pub/survey_ID/record_ID?n=Dakota
Example variable
FIRSTNAME. First name passed in
invisible: y
type: text
cvalue: getParm('n')
Multi-select variables
For a type: checkbox (multi-select) variable, each parameter must be passed in separately. The URL below passes three fruit parameters, setting Q1 to store the values for options 2, 4, and 5 (Orange, Kiwi, and Apricot).
Example entry URL
http://servername.intellisurvey.com/pub/survey_ID/record_ID?fruit=2&fruit=4&fruit=5
Example variable
1. Fruits
type: checkbox
invisible: y
cvalue: getParm('fruit')
1. Apple
2. Orange
3. Banana
4. Kiwi
5. Apricot
Tip! For information on how to form your entry links to capture parameters, see Passing in parameters.
Comments
0 comments
Please sign in to leave a comment.