You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Google Apps Script报错:‘找不到脚本函数onSubmitOpening’问题排查求助

Google Apps Script报错:‘找不到脚本函数onSubmitOpening’问题排查求助

各位大佬好,我正在给一家餐厅做个小项目,用ChatGPT写了Google Apps Script代码来实现开业/闭店任务清单的功能,表单里的提交按钮会触发通知。雇主那边用着完全正常,能正常收到通知之类的,但我用测试员工账号操作时,却弹出了报错:

"Script function onSubmitOpening could not be found"

附上表格的结构截图:
Excel Structure

我的onSubmitOpening函数代码如下(后面的内容还没写完,先贴已有的部分):

function onSubmitOpening() {
  var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Opening");

  // Define the range for the "CHECK" and "INITIALS" columns
  var checkColIndex = 3; // Index for the "CHECK" column (assuming it's the 5th column)
  var init...

想请教下各位,为什么员工账号会出现找不到这个函数的问题呀?

备注:内容来源于stack exchange,提问作者Jenny Lee

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.16 07:04:50