For the managed package runtime, put error or validation messaging on one or more elements in a previous step based on conditions from future steps using the Set Errors action element. Using required fields and Formula/Messaging elements, you can set requirements and conditions on elements only in the current step.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
For example, on an application, an email address may not be required during the initial intake step, and in a future step, the user states that they wish to be contacted by email. The Set Errors element runs after the step and returns the user to the initial intake step with custom error messages.
The Set Errors action doesn’t support File, Image, Messaging, and Formula elements and doesn’t support custom labels.
The name of a Set Errors element must be unique within an Omniscript and all the reusable Omniscripts it uses.
- In Omniscript, drag the Set Errors element into the canvas.
- Add a conditional to control when the Set Errors message displays. Without a conditional the error will persist in the Omniscript. See Use the Conditional View Property to Conditionally Display Elements (Managed Package).
- In the Element Name field, enter the name of your element.
- In the Value field, enter the error message that displays to the user.