OĞUZ EROL · MarkdownTR
Open MarkdownClose
Source: https://oguzerol.com/en/conditional-form-email-notifications/

[![Illustrative scenario: of 412 forms received in one month at a fictional packaging manufacturer, 14 reach the wrong team, 24 go to nobody because no rule matches and 58 are lost while the trigger fails for 4 days; of 23 notifications sent to a salesperson on leave, 17 wait for their return. In the application to be built, a rule table that checks request type first sends the food packaging quote to sales, unmatched requests fall into the operations queue, a primary on leave hands the notification to a backup, and each send's rule, recipient and time is written to the record.](https://oguzerol.com/gorseller/hizmet-kapaklari/form-yanitina-gore-eposta-bildirimi-webapp-v2-en.webp) View full size](https://oguzerol.com/gorseller/hizmet-kapaklari/form-yanitina-gore-eposta-bildirimi-webapp-v2-en.webp)

# Conditional Form Email Notifications: Routing Rules, Default Recipient and Leave Cover

[Oğuz Erol](https://oguzerol.com/en/about-me/)  |  12 min read

Routing a form response to the right person by email takes three things: an ordered rule table mapping a field value to a recipient, a default recipient when no rule matches, and an address that points to a role, not a person. Google Forms with Apps Script can build the first part. What breaks is usually around the rule: a trigger that fails silently, two rules in the wrong order, and no record of who received a request.

This page is for operations leads who want quote, complaint and service forms to notify sales, quality or service by answer. Conditional questions and CRM hand-off are separate jobs.

## A worked month: 412 forms at a packaging manufacturer, 119 problem notifications

The company and figures are fictional; each number is checked with an assert in a Python script. A packaging manufacturer makes corrugated boxes and services the case-taping machines it rents out. Its website has one Google Forms form: “Request type” (quote, complaint, service, other), plus “Region” and “Product group”. An Apps Script script sends an email on each submission based on the answers. Forms also sends every customer a copy of their response.

In one month 412 forms arrived: 238 quotes, 61 complaints, 97 service requests, 16 other. At month end the operations lead traced every notification:

| Month-end finding | Forms |
| --- | --- |
| Reached the right team | 293 |
| Wrong team: food packaging quotes sent to quality | 14 |
| No rule, sent to nobody: South quotes 11, other 13 | 24 |
| Trigger failed for 4 days, sent to nobody | 58 |
| Sent to a salesperson on leave | 23 |

All 82 customers whose forms went nowhere received a Forms response copy and believed the request had arrived; nobody inside knew. Of the 23 notifications sent to the salesperson on leave, a colleague picked up 6 after the customer phoned; 17 waited until the 8-day leave ended. In 119 of 412 forms (29%) the notification went to the wrong place, nowhere, or sat waiting.

None of this is in the email template; a nicer template without fixed rule order, default recipient, role table and error visibility changes none of those 119 forms.

## The routing rule table: field + value → recipient

A routing rule maps the value of one or more form fields to a recipient role; rows are read top to bottom and the first match wins. My proposed table for the example (Type = request type):

| Order | Condition (field = value) | Recipient role |
| --- | --- | --- |
| 1 | Type = complaint, Product = food | Quality + Food safety |
| 2 | Type = complaint | Quality |
| 3 | Type = service, Urgency = line stopped | Service + Service manager |
| 4 | Type = service | Service |
| 5 | Type = quote, Region = North | Sales North |
| 6 | Type = quote, Region = Central | Sales Central |
| 7 | Type = quote, Region = South | Sales South |
| - | None | Operations queue |

Two principles. Request type first, sub-condition second: the 14 wrong notifications came from a script that began “if Product group = food, send to quality”. The author meant complaints, so food quotes went too. And a narrow condition sits above a broad one: if row 2 moves above row 1, a food complaint never reaches food safety, because “complaint” matches first.

The recipient column holds roles, not addresses; who fills each role lives in a separate table.

## Where does a request go when no rule matches?

When no rule matches, the request should go to a default recipient checked daily; without one, unrecognised requests are silently dropped. In the example, 24 forms were lost this way: “South” had been added to the Region list without a South rule (11 quotes), and the 13 “other” forms had no rule either.

The default is a queue, not a bin: operations routes those requests by hand and adds a rule for repeats. I recounted the 354 forms processed while the trigger was working, using the proposed table: 11 South quotes reach their salesperson, 14 food quotes reach sales, 13 “other” forms land in the queue, and none goes to nobody. The 58 forms lost while the trigger was down are not fixed by the table; error visibility below covers them.

## Who receives the notification during leave or after someone leaves?

If a rule points to a personal address, notifications wait in that inbox during leave; after a departure, it depends on your email settings. In the example, the Sales North address was hard-coded: during an 8-day leave 23 quote notifications went there, and with auto-reply on, the reply went back to the script’s account, unread.

- **Group address** (sales@, quality@): unaffected by leave, but everyone may assume someone else is looking. In Google Workspace, the Google Groups collaborative inbox lets members assign a conversation and mark it complete ([Google Workspace Admin Help](https://support.google.com/a/answer/167430?hl=en), read on 2026-11-01).
- **Personal address:** clear owner, but tied to one person; any leave or role change means editing the script.

I recommend that rules point to roles and that a table maps each role to a primary and a backup. If the primary is on leave, the backup receives the notification; if both are away, it goes to the default queue. Leave can come from a calendar or an approval flow (see the [employee leave tracking app](https://oguzerol.com/en/employee-leave-tracking-app/)). A departure changes one row in the role table, not the script.

## Why keep the customer confirmation separate from the internal notification?

The confirmation says “we have your request”; the internal notification says “this request is yours”; they run independently. In the example, the Forms copy did not depend on the script, so 82 customers got a confirmation nobody inside could act on.

In Google Forms, email collection is turned on first, then “Send responders a copy of their response” is set to “When requested” or “Always”. Google notes the copy may not arrive because of spam filters ([Google Docs Editors Help](https://support.google.com/docs/answer/139706?hl=en), 2026-11-01).

A practical rule: the confirmation carries the request number and expected first response time, not the internal recipient’s name; the internal notification carries a link and the routing reason (“rule 5: quote + North”). The Forms copy goes out independently of the script; to send the confirmation after the internal notification, turn the copy off and send it from the script.

## What personal data belongs in the notification email?

An internal notification should carry just enough to find the request; copy every field and you lose control of whose inbox holds the data.

What I suggest: request number, type, company name, routing reason and a record link. Phone, address, complaint text and attachments stay in the record for the authorised person who opens it. This is a data minimisation suggestion, not a ruling on which fields data protection law (GDPR in the EU and UK, KVKK in Turkey) allows in an email; settle that with your legal adviser.

## Sending quota and the spam folder

Apps Script email has a daily recipient limit: per Google’s [Apps Script quotas](https://developers.google.com/apps-script/guides/services/quotas) page (read on 2026-11-01), MailApp allows 100 recipients a day on consumer accounts and 1,500 on Google Workspace; quotas can change without notice. The example’s busiest day had 31 forms; at two recipients each that would be 62. Far below the Workspace limit; on a consumer gmail.com account, past half of 100. Quota and failure-summary details: [Google Sheets threshold alerts](https://oguzerol.com/en/google-sheets-threshold-alerts/).

Google requires anyone sending to personal Gmail accounts to set up SPF or DKIM ([Google Workspace Admin Help](https://support.google.com/a/answer/81126?hl=en), 2026-11-01). Check these records for your domain with IT; the DMARC requirement (over 5,000 a day) does not apply at this volume.

## Three places Forms and Apps Script break

Forms and Apps Script handle one form with a few rules; they break at an invisible trigger, rule order and a missing delivery record.

**A trigger that stops silently.** In the example, someone renamed “Request type” to “Request topic”; the script found questions by title and failed on every submission. Google’s [installable triggers](https://developers.google.com/apps-script/guides/triggers/installable) page says a trigger runs under its creator’s account; I expect failure notices to go to that account, though the page does not name the recipient (2026-11-01). The creator had moved department. Four days, 58 forms; on day five a customer asked about a quote. Minimum safeguards: read questions by ID, send caught errors to the operations address, create the trigger from a shared account.

**Rule order conflicts.** In an if-else chain the order lives inside code the form’s manager cannot see. That is how the food rule sent 14 quotes to quality all month unnoticed. Keeping the rule table in a sheet tab that the script reads makes the order visible.

**No record of who received it.** A script that only sends email produces none of the month-end rows; the example table meant checking inboxes form by form. Writing “rule number, recipient, time, result” to the response sheet on each submission fixes this, and failures land in the same place.

## Ready-made tools or an application: a decision table

Ready-made tools suffice where a notification is a reminder; a record of who took the request, who covers whom and what got lost needs an application.

| Route | Enough when | Limit |
| --- | --- | --- |
| Forms response notifications | One person watches responses | No recipient by answer |
| Group address + Forms notifications | One team, a few people | Unclear who took it |
| Apps Script with a rule tab | Few rules, a default, a log row | Runs as its creator; errors expected to go there |
| In the application to be built | Roles, backups, claiming, leave, audit trail | Written scope, server, maintenance |

## When the form does not need an application

If a few dozen people fill in the form monthly, with three or four request types each going to one group address, do not spend money on an application: three group addresses, a default group, a short Apps Script step and a log column are enough.

Three questions: Last month, did a request go to nobody or the wrong team? Did a customer wait on someone’s leave? Can you say who a request went to within two minutes? If the answers to the first two are no and the third is yes, your setup is enough. At the example company the first two were yes and the third was no.

## How could routing work in the application to be built?

In the application to be built, the form, rule table, role table and delivery record can live in one place: a rule picks the role, leave status picks the person, and the result is recorded. Each of the 119 problem notifications traces back to one of these four parts.

What can go into the scope:

- **Rule and role screen:** operations edits rule order and the role–person–backup mapping on screen, not in code; each change is recorded with its author.
- **Default queue:** unmatched requests wait for manual routing; repeats prompt a rule suggestion.
- **Claiming:** the notified person claims the request; unclaimed after a set time, it surfaces to the backup or operations.
- **Error visibility:** a failed send appears on the operations screen, not in the creator’s inbox.
- **AI suggestion:** for “other” forms, a request type can be suggested from the text; the operations lead approves it, and an unapproved suggestion routes nothing.

It can be built to your needs, and the scope is set in writing at the first step. We choose the notification channel together at that step. The server (VPS) can be opened in your company’s name; the data is yours to take as Excel or CSV at any time. For small and mid-sized teams there is no per-user licence; the cost is server and maintenance. The source code sits in a repository you can access, with run instructions, a dependency list and known limits. The general approach is on the [custom web apps for your team](https://oguzerol.com/en/custom-web-apps-for-your-team/) page.

The first meeting is paid. Bring your form’s request types and who each goes to today, and we start from the rule table; write via the [contact page](https://oguzerol.com/en/contact/).

## Points I have not verified

- Google’s page does not say who receives “Get email notifications for new responses”; that it goes to the account that turned it on is my inference.
- Google’s Forms help page points to a notification add-on; I have not tried it or checked for conditional recipients.
- Google’s page does not name who receives a trigger failure email; that it is the creator is my inference.
- I have not measured how often an internal notification sent from a personal account lands in spam.
- Whether email to a departed employee’s address bounces or is redirected depends on your email admin settings; I cannot give a general answer.

## Frequently Asked Questions

### Can one request go to more than one team?

Yes, but with one owner. In the “Quality + Food safety” row, quality owns it and food safety is informed; with two owners, each assumes the other is on it.

### Will notifications break if we edit the form’s questions?

They can if the script finds questions by title; that is how the example’s 4-day failure began. A script that reads questions by ID survives a renamed question; one that reads by position drifts when a question is added or moved; still, review the rule table whenever a question or option is removed.

### Can customers choose the team or person themselves on the form?

Choosing the request type, yes; choosing the recipient address, no. The customer says what they need; a rule table managed by authorised staff decides the recipient.

[Back to top ↑](https://oguzerol.com/en/conditional-form-email-notifications/#icerik)

WHAT YOU CAN ASK FOR

## How do I work? Work-hour packages

Tell me about your business and what you need on WhatsApp or by phone; we agree on **a work block of somewhere between 5 and 40 hours** and I start doing what is needed. What you get is not a calendar window: it is net working hours spent directly on your business. I can use 40 hours working three days straight, or deliberately spread it out and finish it over a year: whatever the work calls for. I do not spend my time estimating how long something will take, I spend it doing the work; every hour I spend leaves a lasting result in your business. We keep going for as long as you find it useful.

WORK BLOCKS

## Why not monthly? Does a 40-hour block mean one week?

On a fixed monthly fee both sides are watching the wrong thing: you watch a fixed cost, the other side watches how many more contracts like this they can line up. Working by the hour puts us both in front of the same thing: the real value of the work that got done. I know not having an upfront answer to "how much will this cost in total?" is the natural cost of this model. But instead of paying a fixed fee for months to a setup that is not producing results, you only pay for the qualified time spent on your work: and you see exactly where that time went, start to finish. That is why my clients keep coming back.

- **5 hours**: **300 € + VAT** (60€ per hour) · [Choose this block](https://wa.me/905496546489?text=Hi%2C%20I%27d%20like%20info%20about%20the%205-hour%20work%20block.)

- **10 hours**: **500 € + VAT** (50€ per hour) · [Choose this block](https://wa.me/905496546489?text=Hi%2C%20I%27d%20like%20info%20about%20the%2010-hour%20work%20block.)

- **20 hours**: **800 € + VAT** (40€ per hour) · [Choose this block](https://wa.me/905496546489?text=Hi%2C%20I%27d%20like%20info%20about%20the%2020-hour%20work%20block.)

- **40 hours**: **1,400 € + VAT** (35€ per hour) · [Choose this block](https://wa.me/905496546489?text=Hi%2C%20I%27d%20like%20info%20about%20the%2040-hour%20work%20block.)