Naveed Yousaf
Naveed Yousaf

Reputation: 436

Google Form and Google apps Script

I am new to Google Apps Script The problem is that for my Google form my apps script is not running. I have tried following steps

  1. I have allowed the trigger e.g. onOpen(), onEdit() etc.
  2. I opened the form in live mode

But the script is not triggering. Please answer my question if someone have idea what is wrong.

Upvotes: 0

Views: 596

Answers (1)

domchan
domchan

Reputation: 21

The onOpen() and onEdit() triggers work when you are opening the form within Google Drive but not on the live form. Are you wanting to write scripts to analyse and respond to user's input? If so you can use onFormSubmit() on the spreadsheet which you use as the Destination of the form.

See example here: https://developers.google.com/apps-script/quickstart/forms

Upvotes: 2

Related Questions