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

Avatar

Avatar
Validate 1
Level 2
alexanderh76698
Level 2

Likes

5 likes

Total Posts

13 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
alexanderh76698
Level 2

Likes

5 likes

Total Posts

13 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
alexanderh76698
Level 2

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
Validate 1
Employee
Vapsy
Employee

Likes

370 likes

Total Posts

726 posts

Correct reply

342 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Validate 1
Employee
Vapsy
Employee

Likes

370 likes

Total Posts

726 posts

Correct reply

342 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile
Vapsy
Employee

08-02-2017

Hello Alex,

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

E.g.

Hope this helps.

Regards,
Vipul

Answers (0)