In this article
You can also use conditional piping to for example add predefined text to a question if the respondent has selected a specific answer to an earlier question. As a condition can evaluate to either "true" or "false", the question the condition is based on needs to be a single question with two answers.
Note: Once the conditional piping script is added to a text field, it cannot be edited using the piping functionality. If you need to change the script, you can only edit it manually or delete it and start again.
In this example, a customer has contacted a retailer and the retailer is now asking the customer to provide some feedback about the service he/she received during the contact. The customer could have contacted the retailer either by telephone or by email, and the retailer wants to present the appropriate text in the question. This is achieved using conditional piping.
- Open the question into which you want to add the piping, click into the appropriate text field at the location where you want to add the piping, and click the Pipe answers button in the rich text editor toolbar.
- Click the Conditional icon.
- Click Add condition to open the question selection list.
- Select the question you want to use in the condition.
- Check the answer you want to be the "true" result.
- On completion, click Add piping.
Figure 1 - The Pipe answers button
The Pipe answers overlay opens.
Figure 2 - The Pipe answers overlay
The Add condition button appears.
Figure 3 - Example of the list of questions available for this condition
The answers available for that question are presented.
Figure 4 - Example of the answer list for the selected question
You can now add the text you want to display when the condition evaluates to True and False. In this case, if the respondent contacted the retailer via telephone, then we want the text telephone conversation to appear, otherwise, we want the text email exchange to appear.
Figure 5 - Adding the text to be displayed when the condition evaluates to True and False
Note that you can add further piping here.
The resulting conditional piping is: -
Figure 6 - The Conditional Piping
And the question as seen by the respondent will be (if he/she has stated they contacted the retailer via telephone):
Figure 7 - The Question seen by the Respondent