How can I implement custom validation in Mendix and display error message based on it?

0
Is it possible to implement custom validation in mendix by adding javascript validation and make a label visible based on it and if validated call a microflow?
asked
1 answers
2

Hi Reshma,

There a few different options for validation. You can validate in your microflow using exclusive splits and the validation feedback activity, you can setup validation rules on your entity, or you can mark a field as required on a form.

Here are some helpful links

https://docs.mendix.com/refguide/validation-feedback

https://docs.mendix.com/refguide/validation-rules

 

I would also check out the learning modules.

https://gettingstarted.mendixcloud.com/link/module

 

Hope this helps!

 

Edit: I also want to add that you can also use a nanoflow with exclusive splits and the validation feedback activity. I would be cautious if you go this route because their could be some performance hits if you are retrieving data.

https://docs.mendix.com/refguide/nanoflows

 

answered