Relative Content

Tag Archive for javascriptgoogle-apps-scripttriggers

Why does my script create a new trigger every time?

I am slowly teaching myself how to use Google Apps Script. I wrote a script that sorts Google Form results in reverse chronological order (so that the most recent submission is always at top). I successfully got it to run the script and sort on every form submission, but it creates a new trigger every time, so that after 25 form submits the triggers have piled up and I get a “exception: this script has too many triggers” error message.