gs-installable-triggers

Installable trigger created using “ScriptApp.newTrigger” has to be re-saved before it will run

僤鯓⒐⒋嵵緔 提交于 2021-01-29 05:20:11
问题 I have an Expenses sheet that I copy to the Google Drive folder for each of my relevant users. Each copy of the sheet needs an installable trigger that calls a function to insert additional rows when the last row of data gets edited. These are triggered using the onEdit event. The installable triggers work fine when created manually (via " Edit Current Project's triggers "). To simplify the process of setting up new users, I have scripted the creation of my trigger. Although the script

onFormSubmit Trigger occurs twice randomly about every few weeks

余生颓废 提交于 2020-07-03 13:33:12
问题 Firstly, I want to say that this issue is different from all previous Form Submit Trigger errors with Google Apps script. This one triggers twice, while still having access to all form submit info of the previous form submission and triggers the program again. Furthermore, the additional form submit trigger glitch does not add a row to the spreadsheet form responses, this is because the user isn't submitting the form twice, it's on Google for triggering it. This has happened randomly about 3

How to delete triggers that own by other users in Google Apps Script?

允我心安 提交于 2020-06-17 09:33:21
问题 I have an installable trigger that should supposed to created once. But I found out that some of my coworkers have rerun my code and recreated another 3 triggers that exactly the same with it. I felt so silly that I didn't add any conditional statement of that... Anyway, now I want to delete these extra triggers. But I cannot find the delete/edit button on the console UI of the GAS project. And I've also tried ScriptApp.getProjectTriggers() , but it still list the triggers of the project that

How to dynamically change an existing text item value on Google Forms using Google Apps Script

折月煮酒 提交于 2020-04-18 05:40:30
问题 I have an existing Google Form in which there is a TextItem with a title "Which location was this performed at?". Whenever the form is loaded (opened), I need to set a location value (loc) to this existing textbox and show it to the user. function populateMemberIds(loc){ var form = FormApp.openById(formUrl); var questions = form.getItems(); for (var i=0; i<questions.length; i++){ if(questions[i].getTitle()=="Which location was this performed at?"){ var textItem = questions[i].asTextItem(); /