You are here:
Message Screen Output Component
Show screen reader-compatible status messages with different message types that each have their own styling. The types include informational, success, warning, and critical.
Required Editions
The Message component allows you to create accessible status messages that display to users when specific criteria are met. These messages are designed to be screen reader-friendly and follow Salesforce Lightning Design System standards.
This is how an informational Message component looks at runtime.
- Display a critical error message when a user enters a duplicate social security number that already exists in the system.
- Show a warning when data entry exceeds allowed thresholds or limits.
- Present a success message when a form is completed correctly.
- Provide informational messages to guide users through complex form requirements.
Configure the Message Component
| Attribute | Description |
|---|---|
| API Name | The API name of the component. An API name can include underscores and alphanumeric characters without spaces. It must begin with a letter and can’t end with an underscore. It also can’t have two consecutive underscores. |
| Message Type | Select the visual style that determines the look and feel of the message. Available types include:
|
| Message Content | The text to display to the user. To reference a component's value from the same screen in the message, use a formula resource. |
Multiple Messages
You can configure multiple messages with different criteria and message types for a screen. For example, add a success Message component, and set it to show when a user does something correctly. Then add a critical Message component that's set to show if they do something incorrectly.
Set the Component Visibility
Specify the logic that determines when the flow displays the component.
| Option | Description |
|---|---|
| When to Display Component | Configure when the component is displayed by using conditional logic. You can set the components to:
|
Specify the Behavior of Values on Revisited Screens
Specify what this component does when a user enters a value, navigates to a previous screen, and then returns to the screen with this component.
Considerations
- Only reactive formula operators are supported for conditions that evaluate components on the same screen. For supported operators, see Reactive Screen Flow Formula Operators.
- Messages are read by screen readers with appropriate ARIA alert roles for accessibility.
- To show a message when the screen loads, use the Information type. Success, Warning, and Critical message types cause a screen reader error on screen load. Always set conditional visibility for Success, Warning, and Critical message types, otherwise they can cause issues with screen readers.





