Using Piping in Surveys


If you’ve never used piping before it can be a powerful tool to include within any survey.  The basics of piping allow for you to move an answer given on a previous question to the next and in more advanced examples allow for you to show all of your answers to your survey taker before they hit submit.

 

In this help document we’ll go over how you can use piping for either scenario and much more within your survey.
 

Please note: This feature is only available for our customers on the Professional plan and up.
 
How to Use Piping
 

To get started with piping you’ll want to first create your full survey so that you know which questions you’ll need to add piping to. Don’t worry, you can always edit your survey later on or add or delete questions as well.

 

Once your survey is in place you can start to add your piping code to the questions that you’d like your previous answers to appear in. Keep in mind that you can display previous answers in both the question text and the answer area. For example, if you had a multiple choice question and want to move their answer selection from the first question to the second, this is absolutely possible. See below where a customer selects ‘shipping’ in the first question and it’s then piped into the second question as an answer choice below.


 

In this example we piped in the answer from question one “shipping” to also be included in the answer selections for question 2.


In another example you could also pipe in the answer into the question text as well as shown below:


 

Getting Started

 

Now that you’re familiar with how you can use piping we’ll show you how to put it into place within your survey.

 

If you’ve ever used personalization within your survey you’re already aware of the syntax that you’ll need to use to pull in a previous answer. Placing brackets around the question number and answer number that you want to appear will automatically place that information in the question or answer text for you. Please note: You will not see it populate until you preview or run your survey live

 

Using our examples above if we wanted to pull in the answer “shipping” into the next answer set it would look like this within the survey builder:




 

Where [gf_q1] equals the answer for the first question asked [gf_q2] equals the second question asked and [gf_q3] equals the third question in the survey.

A word of warning: because we do refer to the question number piping will break if you change the question order in your survey. You'll want to go back and make sure after you've changed the question order to also change the question you refer to in the piping code.
 

Please note: If you have multiple select on you piping will not work unless you’d like to pipe in all selections at once (for example: showing the survey taker their responses at the end of a survey).
  

Of course you can do the same thing here for question text as well by using the same syntax to pipe in the answer from a previous question into the next question text.





One thing you'll want to be aware of however is that if the previous question is not answered it will show your piping code (like above) rather than the answer. To avoid this, make your question that you are piping from required or use logic to move the person taking the survey to the next question.
 

Getting Crazy with Ranking & Grid Questions

 

If you want to get really crazy with piping you can also use piping for your ranking and grid type questions. In this example we’ll pull in not only the answer that the survey taker selected but we can also select the specific ranking answer that we want to show up as well.





 

In the example question above we ask the survey taker to rank the departments from most to the least used. In the follow up question, we want to know why they aren’t using the department that they ranked as the lowest used. To do this, we’ll use the syntax below:
 


 

Where gf_q4 equals the question number in my survey and 5 equals the rating answer that I want to display (whatever was selected last in this case as I have 5 answers to rank).

 

You can do the same for grid type questions as well, where you’ll select the question number in the survey that your grid question falls on and then select the answer that you’d like to pipe in.

 

For example you would use  [gf_q5:2]  if your grid question was #5 in your survey and you wanted to pipe in the 2nd answer that was selected in your grid.


Piping Form Information

 

This is where things getting really interesting and could be super useful for quickly collecting information about your survey takers. Not only can you pipe information into the forms from previous answers but you can also pipe out the inputted answers from the form questions themselves.
 


A great use case for this would be if you want people before submitting their survey to quickly look over the information they’ve provided in your form type question. You can pipe the information into your last question asking them to review the information provided and then hit submit.




 

Here you’ll see we call out the question number gf_q1 as this is the first question in our survey and after that ask to pipe in form field 1, 2, and 3 in order.

 




Note: Alternatively, you can also have this information show up on your ‘Thank you’ page after they have submitted their survey.


Have any other questions about piping? Contact our support team at help@getfeedback.com

 
Related Topics

The Basics of Merge Fields 

An Overview of Survey Question Types

Creating Multiple Landing Pages
 

 
 
 
 

 
 
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete