Loading
Feature degradation | Gmail Email delivery failureRead More
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Update Data Field Based on Value Entered by User

          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.

          1. From the App Launcher, find and select Flexcards.
          2. Expand a Flexcard and select a version.
          3. If needed, deactivate the Flexcard for editing the Flexcard.
          4. Drag an Input element from the elements panel to the canvas.
          5. Open Properties, and click Field Binding.
          6. To confirm the data JSON updates when the input value changes an existing data field, perform the following tasks:
          7. 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.

          8. Confirm the data JSON update:
            1. Click Preview.
            2. Enter data in the bound field on the canvas.
            3. 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.
           
          Loading
          Salesforce Help | Article