How do I make one or the other field required in form?

I’m creating a simple ‘contact us’ form.

I would like to give my users the option of entering either their email address OR their phone number. But they must enter one of them.

Is it possible to require one of the fields? If email is added, then phone number is not required, or if phone is added, then email is not required. Both cannot be blank.

  • use visibility conditions. If a field is completed, then hide the other one.
  • it has to be a custom form.
  • there’s a post in this forum that provides a solution to validate fields on custom forms.

This is the post with the solution/workaround for validating fields on custom forms:

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.