Title: conditional rule based on email extensions
Last modified: October 21, 2016

---

# conditional rule based on email extensions

 *  [zqence](https://wordpress.org/support/users/zqence/)
 * (@zqence)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/conditional-rule-based-on-email-extensions/)
 * Hi there,
 * I’ve made a conditional rule that looks at the e-mail adres.
    If the right e-
   mail adres is filled in, it will show the submit button and if it’s not the right
   e-mail adres it will not show it.
 * Now i was wondering if it’s also possible to only check for the e-mail extension?
   
   For instance when anyone with an e-mailadres ending on _myownhost.com_ enters
   their e-mail it will show my submit button and else it won’t
 * If this would somehow work, it would be really great since i’ve been searching
   for days now to find a plugin that could simply do that! hopefully someone could
   help me out on this one!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/conditional-rule-based-on-email-extensions/#post-8343802)
 * That’s not possible for now I’m afraid. You could work around it by having the
   user input their email-adress with 2 text-boxes:
 * `[text* email-name]@[text* email-domain]`
 * and then add a condition that shows a group only if the email-domain has a certain
   value.
 * You could still reproduce the entire email-address in your email message with`[
   email-name]@[email-domain]`
 * If I see there is enough interest in this plugin I plan to make a premium version
   that allows for a lot more customization of the conditions. The way I see it 
   eventually it will be possible to add any kind of logic to the forms. But I’m
   still waiting to see how this catches on 🙂

Viewing 1 replies (of 1 total)

The topic ‘conditional rule based on email extensions’ is closed to new replies.

 * ![](https://ps.w.org/cf7-conditional-fields/assets/icon-256x256.png?rev=2072595)
 * [Conditional Fields for Contact Form 7](https://wordpress.org/plugins/cf7-conditional-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-conditional-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-conditional-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-conditional-fields/reviews/)

## Tags

 * [email](https://wordpress.org/support/topic-tag/email/)
 * [extensions](https://wordpress.org/support/topic-tag/extensions/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/conditional-rule-based-on-email-extensions/#post-8343802)
 * Status: not resolved