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?
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?
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.
Is it possible to add more complex expression based rules to this? Seems for instance @(*or%wildcard?).gov.uk
No, regular expressions aren't able to be used. But we will think about that, and maybe add a hook in the future.