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
          Set a Default Value for an Omniscript Element

          Set a Default Value for an Omniscript Element

          The Default Value property sets the JSON value of an element to a static value by default. The default value is overwritten if the element is prefilled from an Omnistudio Data Mapper or JSON response. The Default Value property is available for the Input elements (except Custom LWC, Disclosure, File, Image, and Password).

          For more information on how to dynamically prefill values, see Set Values in an Omniscript.

          Default Value fields in LWC Omniscripts accept merge field syntax. For more information, see Access Omniscript Data JSON with Merge Fields.

          1. From the element’s Properties panel, click the Default Value property.
          2. Enter a literal value or a merge field.

            For a merge field, the value in the referenced field must already be present when the element is instantiated. The default value is set only when the element is instantiated for the first time.

            For elements such as Range and Number, the Default Value property only lets you enter a number. To enter a merge field, switch to the JSON editor.

            For Select, Multi-Select, and Range elements, select a default value while adding an option for users to select.

            The date picker lets the user choose a date that is +/- 100 years from the Default Value of a Date element.

            For example, to set the default value of a Date element to the value of a JSON node called EffectiveDate, enter the merge field %EffectiveDate% in the Default Value property.
           
          Loading
          Salesforce Help | Article