Learn to create a (bullet point) list with entries that are based on end user answers using the Text Block Values and Updating features. The list will only contain those items that are applicable to the end user based on the answers provided.
How to create a context-sensitive list
In this example, we will build a list of recommendations. Each recommendation will only be shown when it is applicable to the end user. Whether it is applicable to the end user, we will learn from their answers.
- Start by creating a Text Block Value "Recommendations". It will later hold your list. You can add some introductory text if you would like.
- Now, create your first Input question. Assume that we want to add a recommendation to our bullet point list whenever the answer to a question is "No". We do not want to add a recommendation for any other answer.
- Add another Text Block Value node below. Let the transition for the "No" answer go to this node. Let the transition for all other answers pass it.
- Name the second Text Block Value "Recommendation" so it updates the "Recommendation" variable. Reference the βRecommendationβ variable to preserve the existing content. Then, add a bullet point with your recommendation.
- Repeat these steps for all recommendations you have.
- Finally, reference the "Recommendations" variable with the bullet point list, e.g., in a result node.
You have created a context-sensitive list!