How to use Gravity Forms gform_validation to provide at least one of your email or phone addresses

I am a developer, not a developer.

I am using Gravity Forms. I have a simple form of gravity:

  • [name]
  • [telephone]
  • [post office]
  • [message]

I would like at least one of [phone] or [email] be entered, instead of requiring that both of them be completed.

Gravity Forms support says that I can use gform_validation , but I don’t know how to create code to validate the form in such a way that if both [phone] and [email] empty, a message is displayed: enter either phone or email.

Help evaluate.

+6
source share
1 answer

In my opinion, it would be easier to do this:

+1
source

All Articles