Do you wish to let guests select the recipient in your contact kind?
Including a variety dropdown may help to verify messages get to the fitting particular person or division.
On this submit, we’ll present you how one can create a WordPress contact kind with a dropdown to pick out who it’s despatched to.
Can a WordPress Contact Kind Ship to Totally different E-mail Addresses?
Sure! With WPForms, it’s simple to create a WordPress kind that sends to completely different electronic mail addresses.
You are able to do this in 3 methods:
- Add a number of kind notifications in order that a number of individuals get an electronic mail
- Add electronic mail addresses to the CC or BCC area within the notification
- Add a area that lets the customer choose which division or particular person receives the message.
On this tutorial, we’ll give attention to choice #3. That is one of the best resolution if you wish to have 1 kind for all of your messages, however you additionally need messages to be routed to the proper particular person on submission.
The best way to Permit Customers to Choose Recipients in a WordPress Contact Kind
Listed here are the steps we’ll work by means of on this tutorial:
- Install the WPForms Plugin
- Create a Simple Contact Form
- Set Up Conditional Notifications
- Publish Your Contact Form
Let’s begin by putting in the WPForms plugin so we will create your new kind.
1. Set up the WPForms Plugin
Earlier than we begin, you’ll wish to obtain and set up the WPForms plugin.
We took this screenshot throughout a sale. Click here to see if the discount’s still available!
In case you want any assist getting WPForms put in in your WordPress web site, try this guide to installing a WordPress plugin.
All set? Nice! Let’s create your contact kind.
2. Create a Easy Contact Kind
Let’s begin by making a simple contact form in WordPress. Go forward and add a brand new kind to begin.
Subsequent, kind in a reputation in your kind. All variations of WPForms include a contact kind template, so let’s click on it to open it up within the kind builder.
As you possibly can see, your fundamental contact kind is about up and nearly able to go.
We’re going so as to add a dropdown area subsequent in order that the person can choose the recipient.
Go forward and drag the dropdown area onto your kind, then click on on it to open the settings.
You’ll wish to change the Label first. We’re utilizing “Who would you wish to contact?” right here.
Then add a Selection for each particular person or division. On this instance, let’s add choices for:
- Buyer Service
- Technical Help
Don’t overlook to mark the sector as Required.
Now let’s arrange the notifications for every of your departments or recipients.
Save your kind earlier than transferring on to the following step.
3. Set Up Conditional Notifications
On this step, we’re going to create conditional logic for the dropdown area. Every choice within the dropdown can be paired with an electronic mail deal with, and we’ll inform WPForms to ship the notification based mostly on the choice.
To begin, click on the Settings icon on the left hand facet of the shape builder.
And now click on Notifications to see the e-mail that can be despatched when your kind’s submitted.
Within the Ship To E-mail Deal with area, kind within the electronic mail deal with for the primary dropdown choice. In our case, it’s our customer support electronic mail.
You may tweak the opposite content material within the notification when you’d wish to.
Subsequent, scroll down and allow the conditional logic in your notification by checking the field.
Once you verify the field, you’ll see the conditional logic choices open beneath. Arrange the conditional electronic mail like this:
Ship this notification if Who would you wish to contact? is Buyer Service
Now scroll again up click on the clone button on the high of the notification.
Within the cloned notification, comply with the identical course of once more.
First, change the e-mail to the second choice within the dropdown.
Then change the conditional logic assertion to Billing
Repeat this strategy of cloning notifications till you will have 1 notification for each choice in your dropdown. Save your kind earlier than transferring on to the ultimate step.
4. Publish Your Contact Kind
You’re all set! We’ve created your kind and arrange the logic. Let’s publish your kind.
On the high of the shape builder, click on Embed.
Subsequent, click on the Create New Web page button to make a recent web page in your kind.
And within the subsequent popup, kind in a reputation in your new web page.
If all the things seems good, merely hit Publish to go stay!
It’s that simple! Now you will have an superior contact kind with a number of recipients.
Subsequent, Add a File Add Discipline to Your Kind
Now you will have your kind arrange, you possibly can add a file upload field to your form as properly. For instance, you may add a area for a buyer to add an bill, then conditionally present it in the event that they choose the Billing division.
Able to construct your kind? Get began at the moment with the simplest WordPress kind builder plugin. WPForms Pro contains a lot of free templates and presents a 14-day money-back assure.