r/GoogleAppsScript • u/Current_Tune_3625 • Sep 13 '26
Question Restricted access drawing button
I have a great order submission, database with daily email triggers. The functionality is on point, manager facing page all formulas working perfectly, database carrying over previous day data, clear the contents, recording into data base, updating date, and auto firing the email with the proper trigger setting. All Working perfect
Well working great for me the owner, but editors cannot get past the restricted access to run the script. The submit button is a drawing linked to an app script with error prompts to avoid duplicate submission etc.
I currently have a checkbox that bypasses the editor access and runs the script under the owners permission. Just to get by, but I hate it, the user are not tech savvy whatsoever, and the check box does not notify the user the script is running and will not produce any error messages, and look unprofessional
Please advise
View all comments
Show parent comment
2
u/mommasaidmommasaid Sep 13 '26
With the checkbox / onEdit() method you can provide immediate progress feedback with a formula in the sheet, or conditional formatting, or by "floating" a clock emoji over the checkbox, etc. when the checkbox is checked. Then uncheck the checkbox from script when done which will in turn remove the progress indicator.
You can also use some tricks to lock the checkbox immediately after it's clicked to prevent multiple clicks, and again reset it for the next use in script.
If the script takes a long time, you could also display interim progress with Spreadsheet.toast()
---
I don't understand why you can't display errors... with proper try/catch error handling you can display hard errors just as with a button, and of course soft data validation issues, with a toast popup or a message box.
---
If you are the owner of the sheets and need more authorization than a simple edit trigger allows, you can use an installed edit trigger and authorize it using your account, so your users don't have to.
If doing this I'd recommend using a standalone script that listens to the spreadsheet, where users don't have edit access to the script, preventing nefarious use of your authorization.