How To Auto‑Route Emails to the Right Manager Using Lookup Fields

Automatically send notifications to the correct manager, department head, or team member based on what someone selects on your form.

Build Time & Skill

15-30 min

Intermediate

What you'll learn

How to route emails to the right person using a Lookup field

Lookup-Field-Auto-Route-Emails-Main-Graphic.png

With Cognito Forms, you can automatically route notifications based on form selections. When someone chooses a field value (like a store location), a Lookup field pulls matching data (like the store manager’s email) from a connected form. This keeps contact information centralized, connects forms across your organization for better automation, and ensures notifications reach the right person every time.

Scenario: A customer completes the Cognito Coffee Customer Survey. Based on their selected store location, a notification is sent to that store’s manager.

Before You Begin: What You'll Need

This guide shows you how to route survey responses to the right store manager using two forms that work together:

  • Locations form: Your directory storing each store’s details (manager names, emails, addresses).
  • Survey form: The form customers use to submit feedback. This form looks up store information from your Locations form in real time.
  • Lookup fields: Available on Team and Enterprise plans, Lookup fields connect forms together so data flows automatically. When customers select their store on the survey form, the field pulls the correct manager contact information from your Locations form.
    Learn more about Lookup fields →

Steps to Auto-Route Notifications

We’ll build a customer feedback system that automatically routes survey responses to the correct store manager. The same approach works for any scenario where notifications should go to different people based on what the customer selects.


Step 1: Build the Locations form

Your Locations form serves as the central database that stores contact information for everyone who might receive notifications. Build this form once, and you can reference it across multiple forms.

  1. Create a new form (ex: “Cognito Coffee Locations”).
  2. On the Build page, add fields for the store details:
    • Store Location (Textbox field)
    • Manager Name (Textbox field)
    • Manager Email (Email field)
  3. In the Form Settings, enable Use with Lookup Field? to allow the form’s entry data to be accessible to other forms.
  4. Click Save.
  5. Open the Entries page and add one entry per location, along with manager details.
    Add one entry per location with manager details.

Step 2: Build the Survey form

  1. Create a new form named (ex: “Customer Survey”).

  2. On the Build page, add your survey fields (e.g., Rating, Comments).

  3. Click into an empty placeholder and add a Lookup field named “Store Location”.

  4. In the Lookup field settings:

    • Lookup Choices From: Select the “Cognito Coffee Locations” form.
    • Choice Label: Select the Store Location field.
      Lookup field settings.
  5. Save your changes.


Step 3: Set up the notification

  1. Go to Workflow (or open Action Settings for the Submit action).

  2. In the Submit action settings, find Send Emails and click + Add Email (or edit an existing email).

  3. For the To value, click Insert Field and select the manager’s email from the Store Location lookup. Optionally, include a workflow link so the manager can directly access the submitted survey.
    Insert the manager email field value.

  4. Make sure to save your changes to both the email notification and the form.

Now, when someone submits the survey, Cognito Forms retrieves the appropriate manager’s email from the Locations form and automatically routes the notification to that manager.

To test your setup, publish and open the form, select a known store location, and submit a test entry. Then, confirm that the manager for that location received the email.


Expert Tips From Our Team

  • Review your Locations form regularly to keep store details and manager information up to date. The changes you make here instantly update across all connected forms.
  • Personalize email notifications by adding dynamic field values to the message, like:
    “Thanks for visiting the {{ Store Location }} location! Your feedback has been sent to {{ Manager Name }}.”
  • Verify your email domain so notifications are sent on behalf of your own domain, creating a professional and branded experience. Learn more about verified email domains.

Start Routing Notifications Automatically Today

With Lookup fields, you create one central directory that powers notification routing across all your forms automatically. When contact information changes, update it once and watch the changes flow everywhere instantly.

Whether you’re routing survey responses to store managers, support tickets to departments, or event registrations to coordinators, this approach saves time, prevents errors, and ensures notifications always reach the right person.

FAQ