Custom validation messages inside a list
Application Type

Hi all,

I'd try to customize my validation message with the form inside the list. I've tried to look up the solution which is related to Validation in List Records | OutSystems. However, my custom validation message seems to be very weird and can't be rendered. Is there any way to fix this?

Attached is the oml file that I am working on.

Thank you.



Hi Kay,

Your code was almost right.

You had 2 problems.

First, you were using both, built-in and custom validations, so you had both messages happening at the same time.

If you are using a JS to inject the classes you will not need the built in, to inactivate it just set the property on save button:

Second, your JS had an if which was preventing the custom message to be added when it already had one message. since you are removing the messages before the check you will not need it, so I removed it:

Finally it worked as expected this is the final result:

Attached is the OML with the changes.

Cheers and Regards,

RR :)


Hi RR,

Thank you! It really solved my problem.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.