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
          Bind a Flexcard Input Value to a Data Field (Managed Package)

          Bind a Flexcard Input Value to a Data Field (Managed Package)

          For the managed package runtime, bind the value of an Input element to a new or existing data field in your Flexcard's data source. When a user updates the input value, the data JSON updates. 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.

          Managed Package app icon This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.

          Required Versions

          Available beginning Winter '22.

          1. From the Flexcard Designer, drag an Input element from the Inputs section of the Build panel.
          2. To bind your input value to a data source field in one of two ways, in the Properties panel, click into Field Binding and perform one of the following tasks:
            • Bind to an existing data source field: To enable a user to update a data field in the data source, click into Field Binding to select a data field that exists, such as {AccountRevenue}. When your user updates the value of the input element, the value of AcccountRevenue in the data JSON updates.

            • Bind to a new data source field: To add new data to the data source, enter a unique name to create a data field in the data JSON. Enter as a merge field with alphanumeric characters and no spaces. For example, {SecondaryContactEmail} or {2ndryContactEmail}.

            Important
            Important

            The Field Binding value takes priority over the Default Value. When creating a data field, the default value is null. When binding to an existing data field, the default value is the value in the data source.

          3. To confirm the data JSON updates when the input value changes an existing data field, perform the following tasks:
            1. Click the Preview tab, and enter or select a value from an input element on the canvas. For example, in a Currency Input element that binds the element to the AccountRevenue data field, enter a new amount, such as 5000000.

            2. In a card object in the cards section of the Data JSON panel, find the updated data field, such as AccountRevenue: "5000000".

            Before: FlexCard ­Field ­Binding update field
            After: FlexCard ­Field ­Binding update field
          4. To confirm a new data field is created in the data JSON when a user enters or selects an input value, perform the following tasks:
            1. Click the Preview tab.

            2. In a card object in the cards section of the Data JSON panel, notice there’s no data field for the one you created in the Field Binding property.

            3. On the canvas, enter or select a value from an input element on the canvas. For example, in an Email Input element that binds to a new 2ndryContactEmail data field, enter an email address, such as janis@joplins.com.

            4. In the associated card object in the cards section of the Data JSON panel, find the new data field, such as 2ndryContactEmail: "janis@joplins.com".

            Before: FlexCard ­Field ­Binding new field
            After: FlexCard ­Field ­Binding new field
           
          Loading
          Salesforce Help | Article