How to give an attribute more than one validation rule?
Hello, I have “Confirm password” attribute, I want to give it validation rules of required and equal. How may I do that?!
Nada Juma Albahri
You can use enitity level validation to give mulitiple validation on single attribute or you can configure it in microflow to check its empty and equal.
Refer this images below
There are several ways to do this. You could:
- add an on change / leave microflow that checks the value as the user is still working on the page
- add a validation flow to the save / proceed button in your form.
- Use custom validation and write an expression that both checks whether the field is empty, AND checks whatever else you need to check
For the first two options, your validation flow will look something like this, with a validation per split:
You can set the rule in your domain model for the attributes.(If conditions are simple).