PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Require a field based on conditional logic

  1. We have a form where people can sign up (optionally) for SMS messages. There's a checkbox for that.

    I'd like to require their phone number if they do, but not otherwise. How could I do this? It doesn't look like conditional logic can apply in that way.

    Thanks!

    Posted 13 years ago on Thursday July 22, 2010 | Permalink
  2. The conditional logic works exactly that way: try it.

    If they check the box to receive SMS, and your phone number field is conditional based upon that answer (and a required field), then the phone number will be required only when the box is checked for SMS messages.

    If they do not want SMS messages, the phone number will not be required (even though you made it a required field.) A required field is only required when it used in the form, conditionally or not.

    Posted 13 years ago on Thursday July 22, 2010 | Permalink
  3. I should have been clearer.

    I want the Phone field to *display* all the time, but only be required when the conditional logic says so.

    The only options I get in the conditional logic area are "show" and "hide," though, not "require"... know what I mean?

    Posted 13 years ago on Saturday July 24, 2010 | Permalink
  4. Just did some research in the forums. It looks like it isn't possible except with workarounds, like having multiple phone fields (e.g. one is hidden and one is not, depending on the value of a checkbox) -- it would be a convenient feature to have!

    Thanks...

    Posted 13 years ago on Saturday July 24, 2010 | Permalink