URL Variables are typically used to pass data for pre-population purposes in SurveyGizmo. But, they can also be used to control the way a web application or form works.
We refer to these as URL variable tricks or hacks. URL variable tricks are part of each SurveyGizmo Support Hero's toolbox to tweak everything from survey share links, to report share links. Make like a support hero and take advantage of these magical tools!
Learn the basics of URL variables in our URL Variables Tutorial.
SG target can be added to a survey share link or response edit link* to navigate to a specified page using the page SKU.
*When using SG target on edit links be sure to remove the sg_navigate=start query from the edit link that is present by default.
__sgtarget=pagesku
SG navigate can be added to a survey share link or response edit link* to navigate to a specified page using the page SKU.
*When using SG navigate on edit links please note that sg_navigate=start
is always present. Be sure to just replace "start" if you are looking to take the survey respondent to a page other than the first page.
sg_navigate=start
Realtime equals true can be added to the end of report share links to pull the most recent responses each time the link is clicked.
realtime=true
This Kiosk variable can be added to the end of a survey share link to enable kiosk mode.
__output=kiosk
This JSON variable can be added to the end of a response Edit link so that the response is returned as JSON without calling the the API
__output=json
Mobi equals true can be added to the end of a survey share link to enable mobile optimized mode.
__mobi=true
Mode equals xls or xml can be added to the end of an export share link to download the desired file type.
mode=xls
or mode=xml
Using the Correct Operator When Constructing URLs
The question mark, ampersand, and equals sign are operators used in the syntax of query strings.
- ? - The questions mark identifies the beginning of the query string and must be placed between the link and the contents of the query string.
- & - The ampersand is used before each subsequent variable/value pair in the query string.
- = - The equals sign separates the variable from the value assigned to that variable