How to Give Each Google Form Response a Unique ID
Form Notifications has two markers that identify a response. {{Response Number}} is a short number that counts up. {{Response ID}} is a long code from Google that never repeats. Put either one in the subject or body of your email.
Use them when people need a reference: a ticket number for a support request, an order number, or a booking reference to quote on the phone.
Which Marker to Use
Section titled “Which Marker to Use”Priya’s team answers support requests at Juniper Home. A customer who calls says “my ticket is 212”, and the team finds the email by that number.
| Marker | Example | Good for | Watch out for |
|---|---|---|---|
{{Response Number}} |
212 |
Ticket numbers that people read and say aloud | Can repeat if you delete responses |
{{Response ID}} |
2_ABaOnudxk3vWb0R6mQy8tLZpC1d5eHfNs7uJgKoXrAi4 |
Records that must never clash, QR codes | Too long to read aloud |
Add a Ticket Number to the Email
Section titled “Add a Ticket Number to the Email”-
Open the add-on and click the name of your email notification.
-
In Email Subject, type the text for the reference and add the marker from the list at the right end of the box:
[Ticket #{{Response Number}}] {{Topic}} -
Add the same reference to Email Body, so the respondent can quote it:
Thanks, {{Your name}}. Your ticket number is #{{Response Number}}.Please quote it if you contact us about this request. -
Go to the PDF step and click Save.
Daniel’s request is the 212th response, so his email has the subject [Ticket #212] Returns.
To make the number look like a reference from your own system, add fixed text around it: JH-{{Response Number}} gives JH-212.
How the Response Number Works
Section titled “How the Response Number Works”The response number is the position of the response among the responses that are in the form now. The 212th response in the form is number 212.
This means the number depends on what the form holds:
| What you do | Effect on later numbers |
|---|---|
| Nothing | Each response gets the next number |
| Delete response 8 when the form has 10 | The next response is number 10 again |
| Delete all responses | The next response is number 1 |
| Copy the form | The copy starts at 1 |
Use the Response ID
Section titled “Use the Response ID”{{Response ID}} is the ID that Google Forms gives each response. It is a long mix of letters and digits. It stays the same when the respondent edits the response, and it is never reused.
It works well where a machine reads it:
- In a QR code on a ticket:
{{Embed QR Code, {{Response ID}}}} - In a webhook, as the key that links the response to a record in your system
- In the name of the response PDF, when file names must never clash
Things to Know
Section titled “Things to Know”- Both markers work in the subject, the body, the PDF file name, the PDF template and the messages to Slack, Google Chat, SMS and webhooks.
- The response sheet in Google Sheets doesn’t show these numbers. If you sort or delete rows in the sheet, the row number no longer matches the response number.
- You can use
Response Numberin a condition. For example, send a “you won” email when the response number is lesser than51. - The add-on can’t make numbers in your own format with leading zeros, such as
0042, or numbers that restart each year.
Troubleshooting
Section titled “Troubleshooting”Two respondents got the same number
Section titled “Two respondents got the same number”A response was deleted between the two. Use {{Response ID}} where a clash matters, or stop deleting responses.
The numbers don’t start at 1
Section titled “The numbers don’t start at 1”The form already had responses, such as your tests, when it went live. To start at 1, delete all responses before you open the form to the public.
The number in the email doesn’t match the row in the sheet
Section titled “The number in the email doesn’t match the row in the sheet”The sheet has a header row, and rows can be sorted or deleted. Use the Responses tab of the form, on the Individual view, to find a response by its position.
