Closed (won't fix)
Project:
Webform
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2010 at 00:52 UTC
Updated:
26 Jul 2013 at 18:32 UTC
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
Comment #1
quicksketchI'd suggest you use http://drupal.org/project/webform_validation for such a complicated conditional.
Comment #3
bancarddata commentedJust 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.
Comment #4
seaneffel commentedI think you are looking the functions in this project:
https://drupal.org/project/conditional_fields