问题
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