onFormSubmit触发器大约每隔几周随机发生两次 [英] onFormSubmit Trigger occurs twice randomly about every few weeks

查看:147
本文介绍了onFormSubmit触发器大约每隔几周随机发生两次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我想说的是,此问题与以前使用Google Apps脚本提交的所有表单提交触发器错误不同.这一次触发两次,同时仍然可以访问先前表单提交的所有表单提交信息,并再次触发程序.

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.

此外,附加的表单提交触发故障不会在电子表格表单响应中添加一行,这是因为用户没有两次提交表单,而是在Google上触发它.在过去的几个月中,这种情况大约随机发生了3次,而对于每个工作我的程序只执行一次,这一点至关重要.经过数小时的研究,我找不到与我类似的问题.即使添加以下代码行,问题也仍然存在:

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 times in the past few months and it is extremely critical that my program only executes once for each job. After hours of research, I was unable to find a problem similar to mine. The problem also persisted even after adding the following line of code:

if(e.values&&!e.values 1 ) {return;}//修正onFormSubmit时的错误 在一种表单提交下触发多次//不工作/做 2020年6月8日的一切

if(e.values && !e.values1){return;} //To fix error when onFormSubmit triggers multiple times under one form submission //Doesn't work/do anything 6/8/2020

推荐答案

出于文档目的将其发布.

Posting this for documentation purposes.

此行为是最近由问题跟踪器"报告的,很可能是OP提出的:

This behaviour was very recently reported on Issue Tracker, probably by the OP:

可能遇到此问题的任何人都可以单击左上角的星标,以便对其进行订阅并对其进行优先级排序.

Anyone who might be experiencing this can click the star on the top left in order to subscribe to it and also to prioritize it.

这篇关于onFormSubmit触发器大约每隔几周随机发生两次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆