Ok the title needs some explanation:

If I have a contact form, I may want to capture the phone, or the email, but not necessarily both... if I set both to required, then SOMETHING has to be entered in each field...

If a way was given to link two fields, and one OR the other was required, but not both, then a warning could be displayed something must be entered in either one of those fields. (Of course entering something in both would still work as well.)

-Myke

Comments

quicksketch’s picture

Status: Active » Fixed

I'd suggest you use http://drupal.org/project/webform_validation for such a complicated conditional.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

bancarddata’s picture

Just curious if the OP ever got this going. I am using D7 and have the same need: I have a radio button with "Preferred method of contact". If they choose E-mail, then I want to require the e-mail field. If they choose Phone, then I want to require the phone field. I saw a post in the webform_validation queue dealing with a different but similar need and the issue has been postponed for research.

seaneffel’s picture

Status: Closed (fixed) » Closed (won't fix)

I think you are looking the functions in this project:
https://drupal.org/project/conditional_fields