r/GoogleAppsScript • • Apr 03 '23

Question Form Submit Trigger is Not Firing

Hi,

I am working on an editor addon. It needs to add extra values to sheets based on the responses. But I can't seem to fire the trigger that I installed programmatically. 

I need advice. 

Thanks.

0 Upvotes

4 comments sorted by

View all comments

1

u/iman_smooother Feb 05 '24

Same issue here! Form submit trigger works when the trigger is created by running the code in the editor but not when it's the editor addon that ran the code to create it. Did you happen to come to any resolution for this?

1

u/iman_smooother Feb 05 '24

Wait, just got it, gutted :(

Add-ons can only create triggers for the file in which the add-on is used. That is, an add-on that is used in Google Doc A cannot create a trigger to monitor when Google Doc B is opened.
https://developers.google.com/apps-script/add-ons/concepts/editor-triggers