You are here:
Update Data Field Based on Value Entered by User
Ensure that your data is always up to date by binding an input element value to a data field in your Flexcard's data source. As a result, when a user updates the input value, Omnistudio updates the corresponding JSON code. You can use the new data like any other piece of data from a data source. For example, update the value of an attribute sent from a parent to a child Flexcard based on user input.
- From the App Launcher, find and select Flexcards.
- Expand a Flexcard and select a version.
- If needed, deactivate the Flexcard for editing the Flexcard.
- Drag an Input element from the elements panel to the canvas.
- Open Properties, and click Field Binding.
- To confirm the data JSON updates when the input value changes an existing data field, perform the following tasks:
-
Select an existing data field, or to create a field on the Flexcard’s data source,
enter a unique name. Use only alphanumeric characters without spaces.
When you create a data field, the default value is empty. After you bind the field to an existing field, the default value is the value in the data source.
-
Confirm the data JSON update:
- Click Preview.
- Enter data in the bound field on the canvas.
- In the Data JSON panel, find the updated data field and check the value. The panel shows new fields only after you enter data on the canvas.
- Example: Update Data Field Based on Value Entered by User
Bind two input elements to the same data field on a Flexcard's data source so that when a user updates one element's value, the other element's value updates to match. This example uses a SOQL query data source that returns Account names, and shows how a value entered in a Text Input element flows through to a Text Area Input element bound to the same field.

