Using Get Variables
Help Center

FluidSurveys Help > Building Surveys or Polls > Advanced Survey Features

Using Get Variables

GET variables require an Enterprise plan.

GET variables are customizable query strings used to pass information between the pages of your survey using the survey’s URL. You can create GET variables to pipe text into your survey or trigger branching logic.

VIDEO: Passing through GET variables

Create and use a GET variable by adding one to the end of your survey URL like so:

http://fluidsurveys.com/surveys/survey-title/?GET-variable-name=value

The GET-variable-name can be any name that is not on the list or restricted terms (see below) and the value will be the data you are passing.

A List of Terms You Can’t Use as GET Variable Names
  • h
  • hash
  • k
  • key
  • l
  • lang
  • n
  • p
  • page
  • s
  • code
  • respondent
  • _previewpage
  • cache_key
  • _cb
  • _portal
  • _domain
  • _embed
  • _helper
  • sample-provider
  • kiosk

The piping syntax for GET variables is:

{{ get_variable.GET-variable-name }}

When you place GET variable piping syntax into the text of you survey, it is replaced with whatever GET variable value is passed through the survey’s URL. For example, if you have a GET variable named “fname” and you send a survey with the URL http://fluidsurveys.com/surveys/survey-title/?fname=Bob any piping syntax referencing this GET variable will be replaced with the “Bob.” So:

Hello, {{ get_variable.fname }}. Thanks for taking our survey!

Would become:

Hello, Bob. Thanks for taking our survey!

TIP! To use more than one GET variable at a time in the same survey, combine them using &: ?GET-variable-one=value&GET-variable-two=value

Generating Piping Syntax with the Piping Wizard

You can also automatically generate piping syntax for a GET variable with the piping wizard.

To create a GET variable with the piping wizard:

  1. Right click on your destination question and select Piping Wizard.
  2. Drag GET Variable from Available Piping Options into the text area of the destination question where you want it to appear.
  3. Give your GET Variable a name. See below for a list of terms that cannot be used as GET variable names.
  4. Click Save.
  5. To preview your piping, save your survey and add ?GETvariableName=TextYouWantToPipeIn* to the end of your deploy link. The text after the = will be piped into your question.
  6. Create as many variant survey links using your variable as you need.
 

Using GET Variables to Trigger Survey Logic

GET variables can trigger survey logic based on the variable passed through the survey’s URL. For example, create a work satisfaction survey and create a GET variable that passes departments. Show or hide questions based on which department is referenced in the survey URL.

To use a GET variable to set up a branching rule condition:

  1. Select Advanced branching wizard from the Pages tab in the palette.
  2. Click + Branching Rule and Add a condition in the wizard window.
  3. Select Meta Variables and GET Variable from the conditions drop down.
  4. Enter your GET variable’s name into the text box and use the drop down on the right to define which values should trigger your logic.
  5. Define Rule Actions or what will happen when when a survey’s link contains a GET variable with the values you defined. See Adding Branching Logic to Surveys for more information on setting up branching logic.
  6. Create and distribute survey links that use your GET variable.