Title: email form if/else function
Last modified: August 16, 2023

---

# email form if/else function

 *  Resolved [edit4ever](https://wordpress.org/support/users/edit4ever/)
 * (@edit4ever)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/email-form-if-else-function/)
 * In the CF7 email, it is obvious how to customize based on a selection (e.g. [
   technical-support-selected]) but is it possible to do the opposite – not selected??
 * We have a drop down with 5 items, and want to customize a line of email text 
   if one of specific the items is selected but if any of the other 4 are selected,
   include this other text.
 * Right now it seems we would have to create an inclulsion for each of the selected
   items – which is messy, especially in the subject line!
 * Hopefully there’s another way to do this. Thanks!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/email-form-if-else-function/#post-16986504)
 * This is on my todo list. [https://github.com/pwkip/contact-form-7-conditional-fields/issues/96](https://github.com/pwkip/contact-form-7-conditional-fields/issues/96)
   But there is a workaround: you can create an additional empty group that you 
   show when the special condition is true, and then put whatever you want to show
   in the email between the tags with this group name. You can always test it out
   in the [form tester](https://conditional-fields-cf7.bdwm.be/form-tester/) and
   share it back here if you need help with the implementation.

Viewing 1 replies (of 1 total)

The topic ‘email form if/else function’ 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

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

 * 1 reply
 * 2 participants
 * Last reply from: [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/email-form-if-else-function/#post-16986504)
 * Status: resolved