我的 UI 适合我(我是电子表格所有者和脚本创建者)。但是,当我与其他用户共享电子表格时,UI 不会完全显示,并且会提示他们打开或保存userAppPanel来自 docs.google.com 的电子表格。
我已将我的脚本完全缩减为以下内容,但仍然不走运:
function showDialog() {
    // Create the UI application
    var uiApp = UiApp.createApplication();
    // Provide the Popup with a title
    uiApp.setTitle('Parameter Collection Dialog');
    // Create an user instruction label
    var lblInstructions = uiApp.createLabel()
      .setText('Select a type of Person and Country');
    // Add the panel to the application
    uiApp.add(lblInstructions);
    // Show the application in the spreadsheet
    var spreadSheet = SpreadsheetApp.getActiveSpreadsheet();
    spreadSheet.show(uiApp);
}
当脚本从脚本编辑器为每个尝试的用户运行脚本时,UI 工作 - 但是,当我将它连接到“打开电子表格”触发器时,脚本只适用于我 - 而没有其他人。
我已经接近完成我的要求,这是一个非常令人沮丧的最后一个障碍。
非常感谢
更新:请参阅我的评论以获取解决方案,即使用 onOpen 函数而不是手动 onOpen 触发器。