You are here:
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.
This example assumes that you configured the Flexcard's data source with this SOQL query:
SELECT Name from Account-
Configure the data source.
- Set Data Source Type to SOQL Query.
-
In the query text area, enter
SELECT Name from Account.
- Under Repeat Options, enable Repeat Records.
- Drag a Text input element from the elements panel onto the canvas.
-
In the Text input element's properties, set Field for Binding to
a merge field that points to the data source, such as
{Name}. - Drag a Text Area input element from the elements panel onto the canvas.
-
In the Text Area input element's properties, set Field for Binding
to the same merge field,
{Name}. - Click Preview.
- Change the value in the Text input element, and confirm that the Text Area input element's value updates to match.

