How to allow a google apps script to be executed in the pubhtml version? [closed]

余生长醉 提交于 2020-11-29 04:06:11

问题


To give context.

I have recently made a Character Sheet, with the gimmick being that they randomly change form. I have made a script that allows one to click a button and a new form will be randomly generated from a hidden sheet.

Now, I wanted to publish it so that the group could access it without the whole Sheets interface in the way.

The question is thus. Is it possible to make the button executeable for everyone in the pubhtml version ?


回答1:


Currently, It is not possible to start execution of any apps scripts from the published url of Google sheets: /pubhtml using buttons or otherwise.

However, it is possible to execute scripts in a Google sheet using time driven triggers and have the changes published as per the refresh rate configured.



来源:https://stackoverflow.com/questions/63431962/how-to-allow-a-google-apps-script-to-be-executed-in-the-pubhtml-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!