Using templating to show User Data in text components
You can use Embeddables’ Templating feature, a simple templating syntax available in the Builder, to display User Data values within text components or components with text elements.
This allows you to create dynamic, personalized content that updates based on user input or computed values.
To display a User Data value in text, wrap the key name in double curly braces:
You can do this inside Plain Text
and Rich Text
components, as well as inside text fields of other components, such as Labels in Button
components.
The value displayed will automatically update whenever the referenced User Data value changes.
Here are some common ways to use templating:
If you’ve collected a user’s name through an input component with the key first_name
, you can display it like this:
If you have a Computed Field that calculates a value (like BMI), you can display the result:
For User Data that contains nested objects (like API responses), you can access nested properties using dot notation:
Here’s a complete example that shows how to display a user’s full name using both direct input values and a Computed Field:
first_name
and last_name
full_name
that combines them:Read more about how User Data works in Embeddables, including how it’s stored and accessed.
Using templating to show User Data in text components
You can use Embeddables’ Templating feature, a simple templating syntax available in the Builder, to display User Data values within text components or components with text elements.
This allows you to create dynamic, personalized content that updates based on user input or computed values.
To display a User Data value in text, wrap the key name in double curly braces:
You can do this inside Plain Text
and Rich Text
components, as well as inside text fields of other components, such as Labels in Button
components.
The value displayed will automatically update whenever the referenced User Data value changes.
Here are some common ways to use templating:
If you’ve collected a user’s name through an input component with the key first_name
, you can display it like this:
If you have a Computed Field that calculates a value (like BMI), you can display the result:
For User Data that contains nested objects (like API responses), you can access nested properties using dot notation:
Here’s a complete example that shows how to display a user’s full name using both direct input values and a Computed Field:
first_name
and last_name
full_name
that combines them:Read more about how User Data works in Embeddables, including how it’s stored and accessed.