Subscribe On YouTube

Join other subscribers and enjoy other Divi video tutorials!

How To Set Conditional Admin Email Address Routing In The Divi Contact Form

Nelson Miller Profile Orange
In this tutorial, I will show you how to set up conditional admin email address routing based on selections in the Divi Contact Form module.

▶️ Please watch the video above to get all the exciting details! 👆

How To Use Conditional Email Address Routing In Divi 5

Install The Divi Contact Form Helper Plugin

The first step is to install the Divi Contact Form Helper plugin. This plugin adds dozens of settings and features directly to the existing Contact Form module, and conditional email routing is one of them.

divi assistant logo png 256

Route Emails To The Right Deparment

Use the Conditional Email Address Routing feature in our Divi Contact Form Helper to send emails to the right people.

Once the plugin is installed and activated, you can begin configuring your contact forms to automatically send notifications to different recipients based on your visitors’ selections.

Set Up Your Contact Form Fields

Before setting up email routing, you need to create the form fields that will determine where the message should be sent.

The routing feature works with fields such as dropdowns, radio buttons, and checkboxes. These fields allow visitors to select options that can later be used as conditions for your routing rules.

For example, you might create a Department field with options such as Sales, Support, Billing, and General Questions. You could also use office locations, service categories, product types, project requests, or any other options that make sense for your business.

Take a moment to review your fields and make sure the available options are set up exactly as you want them before continuing.

Enable The Conditional Email Routing Setting

After your form fields are ready, open the Contact Form module settings and scroll down to the Admin Email Settings group.

Enable the Use Conditional Email Address Routing setting.

enable the conditional email routing setting in contact form using the divi contact form helper plugin by pee aye creative

Once enabled, the conditional email routing builder will appear, allowing you to create rules that determine where notifications should be sent when specific conditions are met.

configure conditional email routing in contact form using the divi contact form helper plugin by pee aye creative

Create Your Email Routing Rules

The conditional email routing builder allows you to create routing rules visually without needing to write any logic manually.

Start by creating a new routing rule. Select the form field that should be evaluated, choose the value that should trigger the rule, and then enter the email address or addresses that should receive the notification.

For example, if you have a Department field, you could create rules such as:

You can create as many routing rules as needed, making it easy to direct inquiries to the appropriate recipients automatically.

create conditional email routing rules in contact form using the divi contact form helper plugin by pee aye creative

Divi 4 Legacy Setup Instructions

Write the Email Routing Logic

The email address routing textarea lets you specify where the plugin should send the message based on specific criteria. Don’t worry about writing logic, it is very easy to do!

In Divi 4, email routing is configured using the form field ID and value. You will need to enter the field IDs and option values in a specific pattern. The pattern of the email routing conditional logic is like this:

Logic Pattern

FIELD_ID::Option Value:emailaddress|Option Value:emailaddress

NOTE: It’s easy to get confused here. Remember to replace the “FIELD_ID” with the actual field ID, and replace the “Value” with your actual value written in the dropdown, checkbox, or radio button. 

Go to the field used as the selection options and check the Field ID. You will see it when you open up the field. For example, suppose you have Field_4, a radio-button field with Option A and Option B. You want anyone who selects Option A to have their submission sent to [email protected], and anyone who selects Option B to have their submission sent to [email protected]. The pattern for that is:

Example Formatting

Field_4::Option A:[email protected]|Option B:[email protected]

The example above is very simple, but you can also create multiple routing rules by separating them with commas.

Multiple Routing Rules Pattern

FIELD_ID::Option Value:emailaddress|Option Value:emailaddress,
FIELD_ID::Option Value:emailaddress|Option Value:emailaddress

For an example with multiple fields, let’s suppose there is a Departments field with checkboxes for Market Research and Product Development. Then, suppose there is a Sales field with radio buttons for Onboarding and Promotion. And there is also a Distribution dropdown field with Packaging and Shipping options.

Advanced Example

Departments::Market Research:[email protected]|Product Development:[email protected],
Sales::Onboarding:[email protected]|Promotion:[email protected]|General Inquiry:[email protected],
Distribution::Packaging:[email protected]|Shipping:[email protected]

The message will send to any and all matching options.

Divi Dynamic Helper Plugin by Pee Aye Creative
Last updated July 28, 2026

Subscribe For More Divi News & Resources!

At the start of each month, we send out a recap newsletter from the month before with family news, Divi news, our latest tutorials, product news, and a look behind the scenes. Occasionally, if the news is too exciting to wait, we will send out another email separate from the monthly newsletter. That’s what you get when you subscribe, and of course, you can unsubscribe if you are no longer interested!

Blog Post Optin
divi 5 logo

Shop Our Divi Plugins

Featured Products

Asset 4

New! Trail Guides

Follow a series of blog posts carefully arranged around a specific topic or goal! Keep track of your progress by marking posts completed, just like a free course!

View Trail Guides

Divi Tutorials On YouTube

Our videos have views! Join subscribers and enjoy over video tutorials!

Visit Our Channel

Leave A Response!

By commenting you agree to our Blog & YouTube Comments Policy

34 Comments

Comments By Members

These comments are highlighted because they were posted by fans who have a membership on this site.

  1. Tim Sutherland <span class="comment-author-role-label"><a href="https://www.peeayecreative.com/product/divi-adventure-club/" class="comment-author-role-link" rel="external nofollow" target="_blank">Divi Adventure Club Member</a></span>

    Just wondering if it’s possible to combine conditions to determine which email address to send to.

    My example is there is an enquiry type as one field and location as another field.

    I want to send to different email addresses based on the location ONLY if the enquiry type is a specific value

    i.e.
    Enquiry Type A -> send to [email protected]
    Enquiry Type B AND Location A -> send to [email protected]
    Enquiry Type B AND Location B -> send to [email protected]

    The reason I want to do this is the location field is important for other enquiry types but the distribution to different email addresses only changes with a specific enquiry type is selected. All other enquiry types go to the same email address irrespective of the location field.

    I’m thinking the only way around this at the moment is to not show the location field when the other enquiry types are selected / use a different field which looks the same for all intensive purposes but has a different name/ID.

    Reply
    • Nelson Lee Miller (aka The Divi Teacher) <span class="comment-author-role-label author-label">Author</span>

      Hi Tim,
      It’s a little difficult for me to understand your scenario without seeing what you mean by location. All the options of this feature are shown in this post, so there isn’t anything else that would work. You can certainly base the logic on multiple selections, but again, not sure what you mean with locations.

      Reply
  2. Aaron <span class="comment-author-role-label"><a href="https://www.peeayecreative.com/product/divi-adventure-club/" class="comment-author-role-link" rel="external nofollow" target="_blank">Divi Adventure Club Member</a></span>

    Hey, Nelson,
    I’m still very much looking forward to this feature being added! I peaked at the changelog and didn’t see it yet. Great work on all the news features and functionality and continued development.

    Reply
  3. Aaron <span class="comment-author-role-label"><a href="https://www.peeayecreative.com/product/divi-adventure-club/" class="comment-author-role-link" rel="external nofollow" target="_blank">Divi Adventure Club Member</a></span>

    What if you want multiple emails for each option? For example when option A is selected, you want the form to go to 3 different emails. When Option B is selected you want the form to go to a different group of however many emails, etc.

    For example:

    Field_4::Option A:[email protected] [email protected] [email protected]|Option B:[email protected] [email protected] [email protected] [email protected] [email protected]

    Is this possible?

    Thanks!

    Reply

Comments By Others

    • Nelson Lee Miller (aka The Divi Teacher) <span class="comment-author-role-label author-label">Author</span>

      Hi Mark,
      I’m not quite understanding what you mean. If you mean something different than shown in this post, then the answer is probably no. But the way it works is conditional based on what option is selected. I’m just now sure if you mean something different or not.

      Reply
  1. Christin

    I have added the plugin but when I check on the front-end and I start filling out the form at https://vannpax.eclipsemarketing.co.za/ then field Location which has the email routing logic as described above, it disappears. Can you please help?

    Reply
  2. Raphaël

    Hi, great solution !
    Question : is there a multisteps option (if not, maybe soon ?)
    Thx

    Reply
    • Hemant Gaba <span class="comment-author-role-label"><a href="https://www.peeayecreative.com/product/divi-adventure-club/" class="comment-author-role-link" rel="external nofollow" target="_blank">Divi Adventure Club Member</a></span>

      Hi Raphaël!

      Could you please share some more details of the requirement you’re looking for?

      Reply
  3. Joe Barnosky

    Hey Nelson, thank you so much for this feature! It’s awesome!

    Quick question: is it possible to set it up this way so that it *only* sends an e-mail if a certain field is selected?

    Our use case: we’re collecting RSVPs for an Easter Egg Hunt at our church, and we have the RSVP form set up to ask for the parent/guardian’s e-mail and phone number if they don’t regularly attend at our church. Honestly, we don’t need an e-mail every time someone registers, we’ll just get numbers from the database. But we WOULD like to get an e-mail specifically if it’s going to be a guest, i.e. if they select “No.”

    If I have the first question’s Field ID as ‘Attendance’ — can I use “Attendance::No:kidsmin@ourchurch” and leave nothing in the second field “|Yes:office@ourchurch” — or “|Yes:none” or… how will that work? Or I guess I should ask: what’s the *best* way to make that work?

    Thanks so much for all of your hard work! This plugin is so dang handy!

    Reply
    • Hemant Gaba <span class="comment-author-role-label"><a href="https://www.peeayecreative.com/product/divi-adventure-club/" class="comment-author-role-link" rel="external nofollow" target="_blank">Divi Adventure Club Member</a></span>

      Hi Joe!

      Yes, the above method you have shared above should work. Let us know if it doesn’t so that we’ll look more into it.

      Thank you!

      Reply
  4. Paul

    Hi Nelson, thank you for this guide. in a different scenario, if I want to change the redirection link depending on the selected dropdown is it also possible?

    Reply
  5. Dave Doherty

    Thanks for the post, I was hoping it might be a solution for what I’m trying to do… Any thoughts on this?

    In Divi Contact Form, any way to dynamically set subject based on calling URL – something like:
    …/contact-us/#et_pb_contact_form_0 Subject=”General Information”

    My goal is to use one contact form and help the user by setting one of the dropdown subjects we have.
    For example, if they want to contact us about volunteering from the volunteer page – we send them to the contact form and preselect from the subject dropdown ‘volunteer’ with something like
    …/contact-us/#et_pb_contact_form_0 Subject=”Volunteer”

    (or any other way)

    Reply
    • Nelson Lee Miller (aka The Divi Teacher) <span class="comment-author-role-label author-label">Author</span>

      Hi Dave, so basically you want a conditional subject line. I think you can do this with a merge tab in the subject line. Just use the merge tab for the field ID of the dropdown selector – in theory that should work!

      Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Recent Posts

Last updated July 28, 2026
Shopping cart0
There are no products in the cart!
You may be interested in…
Divi Builder Experience Helper Plugin by Pee-Aye Creative
From: $29.00 / year

Select options This product has multiple variants. The options may be chosen on the product page

divi assistant plugin by pee aye creative
From: $69.00 / year

Select options This product has multiple variants. The options may be chosen on the product page

Divi Carousel Maker Plugin by Pee Aye Creative
From: $29.00 / year

Select options This product has multiple variants. The options may be chosen on the product page

Logo for D Beginner Course with graduation cap
From: $47.00 / year

Select options This product has multiple variants. The options may be chosen on the product page

divi events calendar
From: $54.00 / year

Select options This product has multiple variants. The options may be chosen on the product page

Continue shopping
0