Using Piping to Insert Text or Trigger Logic
Help Center

FluidSurveys Help > Building Surveys or Polls > Advanced Survey Features

Using Piping to Insert Text or Trigger Logic

Piping allows you to pass information between different parts of your survey. Use piping to dynamically add text to your surveys, insert answer text from a previous question into a question later in the survey, or even trigger survey logic. Use the piping wizard to create piping syntax by right clicking on the destination question and selecting Piping Wizard.

TIP! Advanced piping options let you perform math calculations and operations in real-time while the respondent is taking the survey. Learn more: Advanced Expression Piping

In the following example, the respondent’s first name will replace {{ invite.first_name }}. If the respondent answers Q1 with “New York”, “New York” would replace {{ Q1 }} in the following question.

Page 1, Identifier: Q1 Text Response

Hi, {{ invite.first_name }}. In what city do you currently live?

Page 2, Identifier: Q2: Semantic Differential

How satisfied are you with the following aspects of {{ Q1 }}?

  • Public Transportation
  • Safety
  • Education
  • Housing Costs

Click one of the following topics for more information:

Piping Answers from One Question to Another

Piping text between questions inserts the answer(s) from a source question into the text of a destination question.

To pipe answer(s) from one question to another:

  1. Add the source question (a text response, multiple choice, or text box question type).
  2. In the left sidebar, next to Identifier, click None and enter a unique identifier for the source question.
  3. Make the source question required by clicking Options and unchecking Optional.
  4. Create a new page, and and on that page add the destination question to that page.
  5. Right click the destination question and select Piping Wizard.
  6. From Available Piping Options, drag the identifier from the source question into the text area of the destination question where you want it to appear. You can edit all question text from this window.
  7. Click Save.
  8. To preview your piping, click Save on the edit survey page and click the preview icon preview icon.
Require respondents to answer the source question for a piped value, or apply logic to hide the destination questions. If respondents skip a source question there will be nothing to pipe into the destination question and respondents will see the piping logic instead.
TIP! If you would like to use the selected answer from a checkbox question as the variable or choice options in a later question, use extraction.

Click to see piping syntax for different question types:

Piping Syntax for Different Question types
Source Question TypePiping SyntaxNotes
Text response{{ identifier }} 
Multiple choice{{ identifier }} 
Dropdown{{ identifier }}
Checkbox{{ identifier }}Pipes a comma separated list of all selected answers.
Text Response Grid{{ identifier.[variable_index] }}Pipes at the variable level. Variables are indexed with zero-based numbering
Multiple Choice Grid{{ identifier.[variable_index] }}Pipes at the variable level. Variables are indexed with zero-based numbering
Dropdown Grid{{ identifier.[variable_index] }}Pipes at the variable level. Variables are indexed with zero-based numbering
Hidden Field{{ identifier }}Pipes whatever is set as the hidden value.
Natrix{{ identifier.[variable_index] }}Pipes at the variable level. Variables are indexed with zero-based numbering

Click to see video tutorials on question and answer piping:

VIDEO: Piping From Text Response Questions
VIDEO: Piping From Multiple Choice Questions
VIDEO: Piping From Checkbox Questions
Piping Invite Fields from the Address Book

When you send surveys through the invite tool, you can use the piping wizard to pipe in an respondent’s first name, last name, full name, or email from their address book entry. You can also pipe in any custom invite fields in your address book, but custom fields will not be visible in the piping wizard until you send at least one invite with the invite tool.

To pipe an invite field:

  1. Right click the destination question and select Piping Wizard.
  2. Drag an invite field from Available Piping Options into the text area of the destination question where you want it to appear. You can edit all question text.
  3. Click Save.

To pipe a custom invite field manually, enter the following into your survey text where you want to add the field:

{{ invite.[custom_field_name] }}

Invite field piping only works on surveys sent through the invite tool. If you apply invite-specific piping logic to a survey and distribute it in another way, there will be nothing to pipe into destination questions and respondents will see your piping logic. To preview invite field piping, add yourself to your address book and send an invite.
VIDEO: Piping Custom Fields from Address Book
Piping GET Variables & Hidden Fields

You can use a GET variable to pipe a value into question text to personalize a survey. For example, define a GET variable that passes the name of a Province into your survey and create survey links to send to respondents in different provinces.

To pipe a GET variable into question text:

  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.
  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.

You can pipe a single GET variable to multiple places in your survey by adding the same placeholder text wherever you want to pipe in your GET variable.

Piping a GET Variable into a Hidden Field

A hidden field is a special question type that stores information and is only visible to survey administrators. You can pipe a GET variable into a hidden field to trigger survey logic. For example, create a single survey to be given to two departments. Depending on which department’s name or code is passed through the survey URL as a GET variable, the survey will skip different pages or hide or show different questions.

To use a GET variable and a hidden value to trigger survey logic:

  1. Add a hidden field question to your survey.
  2. Right click the hidden field and select Piping Wizard.
  3. Drag GET Variable from Available Piping Options into your hidden field.
  4. Give your GET variable a name.
  5. Click Save.
  6. Select the Page tab from the palette.
  7. Click Advanced Branching Wizard.
  8. Click + Add Branching Rule.
  9. Click Add a condition?.
  10. Select your hidden value from the drop down.
  11. If your GET variable will have set values, select Contains or Is Exactly from the second drop down. If it will be a range select is greater than or is less than.
  12. Define a value or range for your GET variable.
  13. Select the Rule Actions you want to trigger when the defined GET variable is passed through your survey URL.
  14. Click Save.
  15. Repeat this process for each potential value of your GET variable.
  16. Create survey links for each of your GET values and send them to the appropriate groups.
VIDEO: Piping GET Variables & Hidden Fields