Asa Ayers
Asa Ayers

Reputation: 4894

With Symfony2 how can I get the form validator to require at least one of a set of fields?

I have a from where you can fill in any combination of your home, cell, or work phone numbers.

How can I get the validator to require that at least one is filled in without requiring any of the fields individually?

Upvotes: 7

Views: 3659

Answers (1)

Elnur Abdurrakhimov
Elnur Abdurrakhimov

Reputation: 44851

You have at least two options:

Upvotes: 3

Related Questions