Use Validation Groups for Buttons with Multiple Validation Rules
SAIL Recipes give you an opportunity to explore different interface design patterns. To learn how to directly use SAIL recipes within your interfaces, see Adapt a SAIL Recipe to Work with My Applications.
Present two buttons to the end user that, based on the selection, will validate only after a particular button is clicked.
This design pattern is not recommended for offline interfaces because reflecting immediate changes in an interface based on user interaction requires a connection to the server.
This scenario demonstrates:
- How to use validation groups
Test it out
- Click Submit As Future Hire without entering any information. Notice that the standard required message is displayed for four of the six fields.
- Enter a value for First Name, Last Name, Department, Title. Click Onboard Employee Now. Notice the two remaining fields will show a custom validation error.