Omniscript validation, error messages and recovery paths
How to layer Omniscript validation (Required, Pattern versus Mask, Messaging, Set Errors and the action Validation property), how to replace technical errors from remote calls with friendly messages, and how to design recovery paths such as conditional error Steps and Restart Omniscript.
Prescribe the implementation of robust validation rules, error messages, and conditional steps to guide users and manage unexpected outcomes or data inconsistencies.
~7 min read · 8 practice questions ·
What the exam expects
- Prescribe the validation layer for each rule: Required, Pattern with Pattern Error Text, Messaging, Set Errors or the action Validation property.
- Explain how users experience Set Errors and where it doesn't work (repeat blocks, custom labels, saved sessions).
- Recommend how technical errors from remote calls become user-friendly messages, and on which runtime each Help page applies.
- Design recovery paths for unexpected outcomes: conditional error Steps, failure button labels and Restart Omniscript.
Key terms: Pattern (a simple regular expression with custom error text); Mask (an input format that shows the default error); Messaging element (messages driven by a validate expression); Set Errors (puts errors on earlier-Step elements based on later answers); Error Messages handler (replaces remote-call errors); Restart Omniscript (a Navigate page reference type that resets the data).
Key facts
- Detail
- With a Mask on a text field, the default error shows instead of custom ones
- Detail
- Simple regex works; complex patterns aren't supported
- Detail
- Not supported in LWC Omniscripts
- Detail
- Avoid; use a Messaging element
- Detail
- Transient per field; sets shown sequentially
- Detail
- Not saved in the data JSON or Saved Session object
- Detail
- Step waits for valid required fields; None bypasses
- Detail
- Must match the original error exactly, including spaces
- Detail
- New instance of the same Omniscript; data reset
Sources for this section (7)
- Element Propertieshelp.salesforce.com (opens in a new tab)
- Display Messageshelp.salesforce.com (opens in a new tab)
- Set Errorshelp.salesforce.com (opens in a new tab)
- Save and Resumehelp.salesforce.com (opens in a new tab)
- Action Propertieshelp.salesforce.com (opens in a new tab)
- Customize Error Messageshelp.salesforce.com (opens in a new tab)
- Navigate Actionhelp.salesforce.com (opens in a new tab)
- Why does a Pattern beat a Mask when the business dictates the error text?
- When is Set Errors the right validation tool?
- Which Validation setting lets a save-progress button run with empty required fields?
- When should a Navigate action use Restart Omniscript?
The questions are free to read. Answers with their sources and self-grading are included with the pack.
Keep reading with the Omnistudio Consultant pack
- Core concepts
- Exam traps
- Worked scenario
The pack includes:
- All 31 lessons of the Omnistudio Consultant guide, with reading progress
- Interactive decision walks and step-by-step sequence steppers
- Inline practice questions and one-click topic practice (8 questions for this lesson)
- An official source cited for every claim
- An AI tutor that answers from the guide
- Unlimited timed practice exams