With the new Google Sheets, responses from more than one form can be sent to the same spreadsheet. This is very convenient.
However, it appears that when using the On Form Submit trigger, there is no way to distinguish between forms. This creates a major problem.
For example, I have one form that users submit to signup for a mailing list. I have a second form that users use to submit reports. I have a script that takes the reports and sends them to the mailing list recipients according to their preferences. I need to correlate variables in the mailing list and the reports in order to send the reports according to preferences. I set up the script such that whenever a report is submitted, it is automatically sent. However, when a signup form is submitted, it is triggering the script and sending emails (using information from the signup form).
Is there a way to tell Google to only trigger the script when a specific form is submitted, not when any of the forms linked to the spreadsheet is submitted?
Thanks!