Thịnh Phạm
Thịnh Phạm

Reputation: 2663

Angular: Show one validation message for 2 fields (using ng-messages)

enter image description here

As you can see from the above screenshot, I have 2 fields (first name, last name).

And I don't want to show 2 similar messages (This field is required) under each field. But I want to have only one message (under these 2 fields).

How should I do in this case in order to have that?

Given the fact that I'm using ng-messages.

Any reply would help. Thanks!

Upvotes: 0

Views: 275

Answers (1)

Vu Quyet
Vu Quyet

Reputation: 1705

Edited:

Maybe you can find answer from here Form validation - Required one of many in a group

Upvotes: 1

Related Questions