What are the best ways (best practices) for implementing mandatory fields (except from "required" attribute)

Avatar

Avatar

alexanderh76698

Avatar

alexanderh76698

alexanderh76698

08-02-2017

Hello everyone,

i was asking myself if there are different ways to implement mandatory fields, for example to prevent a user to save a recipient without a name. All I currently know is the way of using the required attribute.

Is there any other way of implementing mandatory fields?

Best regards,
Alex

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Vapsy

Employee

Avatar

Vapsy

Employee

Vapsy
Employee

08-02-2017

Hello Alex,

You can set notNull="true" on the attribute.

E.g.

Hope this helps.

Regards,
Vipul

Answers (0)