Comment on page
Using answers in templates
Personalize your flows by reusing answers you've collected.
It is possible to substitute form answers in question or content labels, redirects, and many other places within a flow.
If I have collected a variable called
first_name, I can use it later in the flow by placing the variable within double curly braces:
If the responder provided
Susanaas their first name, this label would render as:
If you attempt to render a template when the variable is missing, the variable name will be shown within the flow.
Keep this in mind when designing flows. If you are displaying an answer back to a user on the same step on which you collect it, you should make that content conditional using the Is defined operator, so that the user does not see the
Formsort prevents using variables in steps previous to where they are collected.
It's most common to personalize form content visible to the user, but Formsort allows the use of templated variables in a variety of contexts. Two are described below; there are many others.
For example, you might want to forward along some URL parameters that are present when the flow is loaded, such as
utm_sourceto the place that the responder is ultimately redirected to. To do that,
When the user is redirected, the value of the utm_source will be inlined into the URL and
Similar to redirect URLs, image URLs allow the use of templated answers.
For example, you could load an image based on a user's state:
- 1.Collect an answer for the user's state within the flow, calling it something like