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.

Conditional Logic based on email address?

  1. Is it possible to only show a field if a text field doesn't match a certain pattern? We want to only show a file upload field if the email address doesn't match a specific domain or tld?

    Posted 12 years ago on Thursday February 16, 2012 | Permalink
  2. Hi, will,

    With the latest beta version of Gravity Forms (Gravity Forms v1.6.3 Beta 2), available for download on the Plugin Downloads page, there are new options available for conditional logic. There is a new option for "Ends with" which you could use to hide the upload field. For example, if you didn't want users with @rocketgenius.com to be able to upload, you could use "Ends with" along with "@rocketgenius.com". Then when the user enters an email with that, the upload field will be hidden.

    Posted 12 years ago on Wednesday February 22, 2012 | Permalink
  3. Is it possible to add more complex expression based rules to this? Seems for instance @(*or%wildcard?).gov.uk

    Posted 12 years ago on Thursday February 23, 2012 | Permalink
  4. No, regular expressions aren't able to be used. But we will think about that, and maybe add a hook in the future.

    Posted 12 years ago on Thursday February 23, 2012 | Permalink

This topic has been resolved and has been closed to new replies.