You are trying to read the exact answer that onSubmit () executed to trigger another process based on specific data, such as sending confirmation email.
If this is true:
Instead of using the form as a data source for further processing, try reading the Google Datasheet, which stores responses. It may seem that the problem is the same: reading either the data source (the form itself or the sheet storing the data) does not indicate the exact record that raised the onSubmit () event.
The difference is that in the worksheet you can create a "reply_sent" column to set the time when each form response was processed, for example, by sending an automatic response based on its contents.
Then, when onSubmit () is executed, it goes through all the responses and processes not only received last, or the one that called the onSubmit () function, but also any other answer that can be left without a link to all Reason (reply_sent field "empty). The last advantage of this approach is that your script registers how it behaves, since the date is written along with each response, as it calls obSubmit ().
source share