Text / Data Piping
📋 What is text / data piping ?
Text piping allow you to insert a text value called a pipe tag in any of your survey text elements, invitation messages or completion alerts that will get replaced while running the survey with dynamic content to give the respondent the impression that the survey has been tailored only for him.
You could for example ask the respondent for his name and then re-use his name anywhere in your survey to make it more personal.
➕ Insert a pipe tag
Pipe tags can selected anywhere using the pipe tag selector icon.
🚰 Pipe a text from an answer
Piping from an answer allows you to pipe any text based value entered by the respondent anywhere into your survey.
To pipe the entered answer value you must first set the pipe alias of the answer in the answer properties. Once this is done you can either select the pipe tag using the pipe tag selector or using following tag [[youranswerpipealias]]. This pipe tag will be replaced at runtime while the respondent takes the survey with the actual respondent answer.
🚰 Pipe question selections answers
You may also pipe the selected answers (radio buttons, checkboxes) of a question. To pipe the selected answer of a question you must first set the pipe alias of the question in the question properties. Once this is done you can either select the pipe tag using the pipe tag selector or using following tag [[yourpipealiasquestion]].
🚰 Pipe panelist attributes
If your survey is using a panelist security item you may pipe any of the logged in panelist attributes anywhere into your survey content texts or field default values using following pipe tag ++yourpanelisattribute++
🚰 Pipe querystring variable values
You may also pipe values from the browser query string variables anywhere in your survey content texts using following pipe tag ##variablename##
You may follow our walkthrough to learn more on how to save a value from the querystring.
🚰 Pipe security items data attributes
If you have activated some security items on your survey you may pipe their data attributes anywhere in your survey content texts using following pipe tag __dataattributeid__
As values of the data attribute depends on the security item that you have activated you may refer to their documentation to learn more which data attributes they share for piping.
🚰 Built in system pipe tags
ngSurvey provides also following pipe tags that will be replaced dynamically with their corresponding value.
{{date}}
actual local date of the respondent.{{datetime}}
actual local date and time of the respondent.{{utcdatetime}}
actual universal time.{{surveyid}}
current survey id.{{score}}
total score of the respondent if its a scored survey.{{vuid}}
id of the respondent.{{changeuid}}
unique code used to restoring respondent answers for update.{{resumeuid}}
unique code used to resume the respondent session.{{languagecode}}
selected language code.{{useragent}}
user agent of the respondent's device.{{islamicdate}}
pipes the current date based on the Islamic Umm Al-Qura calendar.
Last updated