By: Chris Coyier Back to Guides
Using Wufoo’s Form Rules (available on any paid plan), you can easily set up your form to send email notification to particular people based on a user’s selection whilst filling out the form. Let’s do it!
Step 1) Create Choice Field
A dropdown menu or radio button field generally makes the most sense for this task. Add one of these to your form and add the choices for the user to pick from. These should essentially be reasons why the user is filling in the form which then map to individual people. Unless it’s an internal organisation form where everyone knows each other, it’s best not to make people directly choose which person it’s going to.
Step 2) Create Form Rules
Instead of creating standard email notifications for this form, which send to an email address regardless of any choices made, we’ll use Form Rules. Click the Rules button beneath the form you are working on from the Form Manager. Click the Form Rules tab and then the Create a Form Rule button. Each choice you created in Step 1 will now have its own rule. Use the sentence-structure format to build the rule, matching the field and the choice. Then choose the Send Email option below that and enter the email address of the person who is supposed to receive the email notification when that choice is selected.
Step 3) Try out your excellent new form
Check out your form and try filling it in and submitting it. Choose “Sales” from the dropdown, then stick your head over the top of your office cubicle, “HEY SUE, CHECK YOUR EMAIL, THE CONTACT FORM SENDS YOU SALES QUESTIONS DIRECTLY NOW.” She’ll love that.