You are here:
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.
-
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.
-
For Validate Expression, enter the expression to validate.
You can evaluate any element or elements, including Formula and Aggregate.
-
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.
-
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:
- In the Setup properties, click Edit as JSON.
- Add the property "commitOnChange": true.
-
Preview the behavior.
Note
In LWC Omniscripts, the onChange behavior runs after a half-second delay.

