Two different Validation for two fields using microflow ?

0
Hello Team ,   I want to achieve the validations for two fields Both fields should either be filled  or not. You can't have 1 filled and the other blank. Field1 should always be <=field2  While i am try to validate those at a time it was giving an error in local “ An error occured …..”  Any suggestions ?  
asked
2 answers
2

Make the validation like this:

($Entity/Field1 = empty and $Entity/Field2 = empty) or 
($Entity/Field1 != empty and $Entity/Field2 != empty and $Entity/Field1 <= $Entity/Field2)

 

answered
2

This can be easily achieved with a couple of decisions.,

If $Entity/Field1 = empty and $Entity/Field2 = empty then proceed then check if If $Entity/Field1 != empty and $Entity/Field2 != empty.

answered