You can combine data and text to create a more personal experience for citizens.
Whenever a form experience is made unique for the person completing the form, we can say it's a 'customized' or 'personalized' experience.
Customized experiences usually reflect individual needs based on things like progressive disclosure using visibility. This experience is shared across people with similar needs or situations.
Personalized experiences involve using form data to present content and information that is unique to the individual, such as their name to provide a more direct and conversational experience.
Template Parameters are the easiest way to accomplish this, but in certain cases, you will need to use the concat() function to combine text and data.
Template Parameters are available for:
To use Template Parameters, first navigate to the appropriate tab in the control's settings. Then:
See the example below for more detail.
For additional information, see:
You have a wizard form and you want:
To do this you'll:
To see this example in action, see the Personalizing forms demonstration.
Note that templates can also allow entry of a Formula or several Link types.
For the demonstration form, we simply turned on the wizard option and left everything else with the default settings. As a result, you can navigate to the second panel without entering a name. This results in the phrase reading "Thanks, . How can we help you today?" Since the name isn't present to include in the phrase, there's a blank space between the comma and the period.
There are 2 options to address this:
In this particular example, we would replace the original "Thanks, {$name}." portion of the phrase with a single variable immediately before the remainder of the phrase, such as:
{$name}How can we help you today?
Then we could define the value of name using a formula such as:
If (is-blank($givenName)) then '' else concat('Thanks, ', $givenName, '. ')
With this particular formula:
There are other variations you could apply in your formula.
For additional information, see: