I have two different forms. Each of them is connected to the same spreadsheet. I have also set up a onFormSubmit(e) trigger. Now my question is how can I distinguish between the form submissions based on the form. I have different logic for both the forms, so I need to get some identifier through which I can check which code to run?
function onFormSubmit(e) {
// something like this
// if submission from FormA then do foo()
// else if submission from FormB then do bar()
}