Forums
Forums / Plugin: Conditional Fields for Contact Form 7 / Conditional for email domain
(@tiagocoelho2)
5 years, 7 months ago
Hello. Is it possible to create a conditional that validates an email domain? Example, any email @gmail.com does an action 1 / @outlook.com does an action 2.
(@jules-colle)
Hi, not with the free plugin. But with the pro plugin you could achieve this either by writing a regular expression: https://conditional-fields-cf7.bdwm.be/contact-form-7-conditional-fields-pro/#regex
or by writing a custom function: https://conditional-fields-cf7.bdwm.be/advanced-conditional-logic-with-custom-javascript-functions/
The topic ‘Conditional for email domain’ is closed to new replies.