how-to-allow-users-to-select-recipients-in-a-wordpress-contact-form

How to Allow Users to Select Recipients in a WordPress Contact Form

Do you want to let visitors choose the recipient on your contact form?

Adding a selection dropdown can help to make sure messages get to the right person or department.

In this post, we’ll show you how to create a WordPress contact form with a dropdown to select who it’s sent to.

Create Your WordPress Form Now

Can a WordPress Contact Form Send to Different Email Addresses?

Yes! With WPForms, it’s easy to create a WordPress form that sends to different email addresses.

You can do this in 3 ways:

WPForms is the best WordPress Form Builder plugin. Get it for free!
  • Add multiple form notifications so that multiple people get an email
  • Add email addresses to the CC or BCC field in the notification
  • Add a field that lets the visitor pick which department or person receives the message.

In this tutorial, we’ll focus on option #3. This is the best solution if you want to have 1 form for all your messages, but you also want messages to be routed to the correct person on submission.

How to Allow Users to Select Recipients in a WordPress Contact Form

Here are the steps we’ll work through in this tutorial:

  1. Install the WPForms Plugin
  2. Create a Simple Contact Form
  3. Set Up Conditional Notifications
  4. Publish Your Contact Form

Let’s start by installing the WPForms plugin so we can create your new form.

1. Install the WPForms Plugin

Before we start, you’ll want to download and install the WPForms plugin.

Since we’ll be using conditional logic, you’ll want to choose the Basic license or higher.

WPForms Pricing

We took this screenshot during a sale. Click here to see if the discount’s still available!

If you need any help getting WPForms installed on your WordPress website, check out this guide to installing a WordPress plugin.

All set? Great! Let’s create your contact form.

2. Create a Simple Contact Form

Let’s start by creating a simple contact form in WordPress. Go ahead and add a new form to start.

Add new form in WPForms

Next, type in a name for your form. All versions of WPForms come with a contact form template, so let’s click it to open it up in the form builder.

WPForms select template

As you can see, your basic contact form is set up and almost ready to go.

Simple Contact Form

We’re going to add a dropdown field next so that the user can pick the recipient.

Go ahead and drag the dropdown field onto your form, then click on it to open the settings.

Dropdown field

You’ll want to change the Label first. We’re using “Who would you like to contact?” here.

Then add a Choice for every person or department. In this example, let’s add options for:

  • Customer Service
  • Billing
  • Technical Support

Dropdown field choices

Don’t forget to mark the field as Required.

Mark your dropdown field as Required

Now let’s set up the notifications for each of your departments or recipients.

Save your form before moving on to the next step.

3. Set Up Conditional Notifications

In this step, we’re going to create conditional logic for the dropdown field. Each option in the dropdown will be paired with an email address, and we’ll tell WPForms to send the notification based on the selection.

To start, click the Settings icon on the left hand side of the form builder.

WPForms settings

And now click Notifications to see the email that will be sent when your form’s submitted.

Form notifications

In the Send To Email Address field, type in the email address for the first dropdown option. In our case, it’s our customer service email.

Change notification email

You can tweak the other content in the notification if you’d like to.

Next, scroll down and enable the conditional logic on your notification by checking the box.

Enable conditional logic on your notification

When you check the box, you’ll see the conditional logic options open underneath. Set up the conditional email like this:

Send this notification if Who would you like to contact? is Customer Service

Enable conditional logic on notification

Now scroll back up click the clone button at the top of the notification.

Clone notification in WPForms

In the cloned notification, follow the same process again.

First, change the email to the second option in the dropdown.

Edit cloned notification

Then change the conditional logic statement to Billing

Conditional logic on cloned notification

Repeat this process of cloning notifications until you have 1 notification for every option in your dropdown. Save your form before moving on to the final step.

4. Publish Your Contact Form

You’re all set! We’ve created your form and set up the logic. Let’s publish your form.

At the top of the form builder, click Embed.

Embed form

Next, click the Create New Page button to make a fresh page for your form.

Create a new page

And in the next popup, type in a name for your new page.

Name your new contact page

If everything looks good, simply hit Publish to go live!

Publish contact form

It’s that easy! Now you have an awesome contact form with multiple recipients.

 

Create Your WordPress Form Now

Next, Add a File Upload Field to Your Form

Now you have your form set up, you can add a file upload field to your form as well. For example, you could add a field for a customer to upload an invoice, then conditionally show it if they select the Billing department.

Ready to build your form? Get started today with the easiest WordPress form builder plugin. WPForms Pro includes lots of free templates and offers a 14-day money-back guarantee.

If this article helped you out, please follow us on Facebook and Twitter for more free WordPress tutorials and guides.

Using WordPress and want to get WPForms for free?

Enter the URL to your WordPress website to install.

Comments

  1. Syed, isn’t there a setting to prevent the form from resending when the page is refreshed?

    I have a listing’s page with multiple people. I want to put a WP form under each listing so people can contact them through the form instead of putting email addresses on the page.

    Is there a solution using WP forms that I can use. Of course, I can add the forms. However when the page gets refreshed the form submissions get resent.

    I do hope there is an answer to my dilemma.

    I absolutely love WP forms.

    1. Hi Michael,

      If you’re seeing users refreshing the page, I’d recommend using a Thank You page rather than a confirmation message. We have a great tutorial with examples of how to leverage a Thank You page to your advantage. This page could include a link back to the form page if they want to submit the form again.

      Hope that helps! 🙂

  2. Great option , i need to choose recipient when sending an email but it don’t work with free version 🙁

    Too bad , I will check for an alternative form plugin.

    1. Hi Pierre.
      The Conditional logic feature is available with any of our paid licenses.
      In case it helps, we currently offering a 50% discount for all new purchases.
      I apologize for any confusion!
      Have a good one 🙂

  3. Do you have nested (AND/OR) conditional selections such as IF(State = TX) AND IF(Department = QA) then send to a specific user and then also have a catch all in case these options are not available?

    1. Hi Carlos!
      You can absolutely create conditional Notifications in WPForms to be sent based on the user’s input in the form fields.
      For more detaiuls, please checkout this article on our site. In case it helps, we also have this one on how to use AND/OR conditions in WPForms.
      I hope this helps.
      Have a good one 🙂

  4. We would like to have our users be able to send out their referral code to anyone in their contacts. Are we able to do this using wp forms? If not, any suggestions?

    Thank you!

    1. Hi Neil, I’m sorry, we’ll need a little bit more details before I can conclusively let you know if our plugin is the right tool for you. Could you please contact us and provide some more details or an example of the workflow you have in mind? Screenshots, screencasts, or even links to a working example would also be helpful.

      Thanks!

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

This form is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.