How to give an attribute more than one validation rule?

0
Hello, I have “Confirm password” attribute, I want to give  it validation rules of required and equal.  How may I do that?!  
asked
5 answers
4

Hi Nada, 

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

 

answered
2

There are several ways to do this. You could:

  1. add an on change / leave microflow that checks the value as the user is still working on the page
  2. add a validation flow to the save / proceed button in your form. 
  3. 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:

answered
1

Validation is also covered in the Crash Course:

https://academy.mendix.com/link/module/324/lecture/2934/7.4.2-Adding-Validation-Rules

So you can explore it at your own pace

answered
0

Hi Nada,

You can set the rule in your domain model for the attributes.(If conditions are simple).

 

answered
0

I don’t know((

answered