Skip to main content
All CollectionsFAQsCapability
Dynamically update a label based on the response to another field
Dynamically update a label based on the response to another field

Let's explore how you can dynamically update a component label.

Updated over a week ago

A components label is the text that appears before the data input field. In most cases this property contains a question or prompt for information, however there are some situations where you might want to include dynamic fields within the label.

This can be achieved by following the steps below:

  1. Under the data tab of your component settings set the "Redraw On" property to "Any Change"
    ​


    ​

  2. Open the component properties and under the label field add in your desired label, using handlebars syntax to add dynamic fields as shown below. Note that you should replace 'name' with the property name field available in the api tab of that component.
    ​

    What is {{ data.name }}'s age


    ​

Did this answer your question?