Display Messages in Omniscripts

Display comments, requirements, and success and warning messaging depending on whether the validate expression returns True or False. Configure the Messaging element after creating an element, such as a formula or aggregate, to display validation messages in the OmniScript. Merge fields are supported in messages.

  1. From the OmniScript designer, drag a Messaging element into the structure panel where the message must appear.
    LWC OmniScripts don’t support the Messaging element in an Edit Block.
  2. For Validate Expression, enter the expression to validate.
    You can evaluate any element or elements, including Formula and Aggregate.
  3. In the Messages section, select message types for when the expression evaluates as True or False, and then enter messages.
    True and False messaging can be deactivated, and messaging is optional.
  4. In Omniscripts, validation runs when a user clicks out of a field by using the onBlur function. To enable the Omniscript to run validation when a user types:
    1. In the Setup properties, click Edit as JSON.
    2. Add the property "commitOnChange": true.
    3. Preview the behavior.
      Note
      Note

      In LWC Omniscripts, the onChange behavior runs after a half-second delay.