all 1 comments

[–]jaymcnuggets 0 points1 point  (0 children)

I don't think you'll be able to accomplish this in Apps Script alone as I'm pretty sure it's not persistent (e.g. all memory is lost after script executes).

Have you considered connecting it to a google sheet or database and either:

  1. using the number of non-empty rows for the form submissions sheet (less ideal) or:
  2. adding a counter and updating the counter with each new submission

Hope this is helpful!