As an Experience designer, you can configure validation rules on form fields to help users enter more accurate and relevant data. These rules apply at the model level, so you can enforce business logic consistently across forms and display clear guidance when input values don't meet your requirements.
Validation rules can:
- Display contextual messages that help users correct errors.
- Prevent form submission until issues are resolved.
- Improve data quality before triggering any workflows.
For example, you can create a validation rule that checks whether a date field contains a future date. If the value is after today, the form displays a message asking the user to select a valid past date.
Forms must pass all active validation rules before Applaud triggers any associated workflows.
When writing messages, aim for clarity and helpfulness. For guidance on crafting user-friendly messages, see Microsoft's guide to message design.
Message types
You can choose how validation messages appear to users depending on the type of feedback you want to provide.
Raise an error message
Use this message type to block the user from saving changes until they correct the input. For example, if the "Published date" is in the future, show an error message asking the user to choose a valid date.
Message colors follow your brand configuration in Applaud and may differ from the examples shown here.
Example:
Send a warning message
You can use a warning message to allow the user to save the form, but alert them to a potential issue.
Example:
Send an information message
You can use an information message to provide helpful context without blocking progress. This is useful for best-practice tips or reminders.
Example:
Send a success message
You can use a success message to confirm when the input is valid and the user has met the expected criteria.