---
schema_version: "1"
id: 664c5fd7c1c4105f1947c30c866a2baa51c2b5759eb59a57b6587fc6f17746da
title: Display Messages in Omniscripts
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_display_messages_in_omniscripts_19551.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_display_messages_in_omniscripts_19551.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 7adb66a27cc4278f03ecd08a42bd84d38fa5f08708a7a880507950932eb9cd8f
description: 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.
products:
  - Omnistudio
release: "264"
---
# 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](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/images/icon_note.png)
        
        Note
        
        In LWC Omniscripts, the onChange behavior runs after a half-second delay.