Create a conditional survey with Appcues
Learn how you can show a conditional follow-up question with a survey in Appcues
Table of Contents
This guide will show you how you can create a survey in Appcues that shows an immediate follow-up based on a response given by the user. This use case will require having two different flows, but once we're done with our targeting, the end-user will perceive just seeing one flow.
To follow this guide, it is best to already have:
- Flow 1: with your first survey question
- Flow 2: with your follow-up survey question
Once these are created, they look like this. On Flow 1, we're asking the users what their main uses cases are, giving them 4 different options using the single-select survey block:

On Flow 2, we have a follow-up question directed only at the users selecting ‘Product adoption’ using a free form text input survey block.

Build Guide
Step 1. Enable a track event on your submit button in Flow 1

Step 2. Activate the button event in Flow 1
In order for events to populate in targeting menus, they need to first be detected by Appcues. To do that, a simple way is to publish your Flow live and use a Permalink to see the Flow and click the button. To ensure no one else sees your Flow while you're setting it up, set the Flow to Trigger Only Manually and then copy-paste the Permalink to a new tab to see the Flow.

Step 3. Use the event to trigger Flow 2
Once the event in Flow 1 is created and activated, we can move on to the settings of Flow 2. In this case, we'll use the button event we created earlier to trigger Flow 2. This means that as soon as the Submit button in Flow 1 is clicked, Flow 2 will start showing. This is done with a feature called Event Triggering.

Step 4. Target Flow 2 to only users responding ‘Product adoption’
Now we need to make sure Flow 2 only shows to users that have given a certain response, in this case, ‘Product adoption’. When a survey is created in Appcues, an auto-property with the title of your question is created on the user profile. It collects the response the user has given to that survey question and these auto-properties have a prefix of ‘Form Response:’.

If you type your question, you'll be able to find the correct property. Then, simply make sure you create the condition so that it matches users responding ‘product adoption’. Enter the value of the responses exactly as they are in the survey as they are case-sensitive.

In case you're not able to find your survey question in this dropdown because all your form response properties look like the below, that is explained because the question wasn't added to the survey as a label, but as a text block. Because of that, Appcues auto-generates an id for that field and they are formatted like the ones below.

You can find the correct id for your survey question if you download your survey CSV and look at the column that contains the responses.
Step 5. Test it out
Once both your flows are ready, publish them live to test what the experience looks like. If you'd like more guidance on testing flows, check our article.
Here's what the user will see if they select any response other than product adoption:

Here's what the user will see if they select product adoption:

If you have any questions, reach out to support@appcues.com and we're happy to help!