I usually handle this with a conditional "How would you like to be contacted?" question, with two multiple choice (radio button) options: phone and email.
Then you show the phone field if they selected "phone" and the email field if they selected "email" using the built in "conditional logic" feature. Make both the phone and email fields required. Gravity Forms is smart enough to know that a conditional field that is required but unused (i.e. they want to be contacted by phone, so the email field is not used) does not fail validation. It won't be required any longer.
Here's a quick example:
http://guitar.chrishajer.com/2011/07/08/conditional-contact-form/
I'm certain there are other ways to handle it, but this is one simple way. I realize this is a pre-sales question, but rest assured that what you want to achieve is certainly possible with Gravity Forms.
Posted 13 years ago on Friday July 8, 2011 |
Permalink