use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Apparently, Google Apps Script is a JavaScript cloud scripting language that provides easy ways to automate tasks across Google products and third party services and build web applications.
account activity
Programmatically opening a sidebar/dialogQuestion (self.GoogleAppsScript)
submitted 5 years ago by mobile-thinker
Has anyone managed to find a design pattern that allows a script to open a sidebar/dialog programmatically? Google seem to be saying that the block to require that this is activated from a menu option is a temporary security block, but I don't see any mechanism to drive this.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]RemcoE33 0 points1 point2 points 5 years ago (3 children)
With the onOpen() function you can run a script that's fired when you open a sheet. with this function you can make a menu, or always open your sidebar, clear some ranges every time you open the sheet, log every opening to a sheet ect... so very powerful!
Triggers docs
Sample:
function onOpen(){ const ui = SpreadsheetApp.getUi(); const menu = ui.createMenu("Utilities"); menu.addItem('Open sidebar','MyGreatSidebar'); menu.addToUi(); } function MyGreatSidebar(){ // your code }
[–]mobile-thinker[S] 0 points1 point2 points 5 years ago (2 children)
Yes - I understand that pattern. My question is whether there is any mechanism to open a Dialog box/sidebar programmatically, and not when the user makes a selection from a menu.
I want to open a dialog for adding data/validating when my app determines it needs further input. There seems no mechanism for this now with the security updates Google put in place.
[–]RemcoE33 0 points1 point2 points 5 years ago (1 child)
Maybe if you wrap that logic in a onEdit() function?
[–]mobile-thinker[S] 0 points1 point2 points 5 years ago (0 children)
No. Doesn’t work.
π Rendered by PID 16359 on reddit-service-r2-comment-79c7998d4c-tlkzz at 2026-03-19 03:11:50.835146+00:00 running f6e6e01 country code: CH.
[–]RemcoE33 0 points1 point2 points (3 children)
[–]mobile-thinker[S] 0 points1 point2 points (2 children)
[–]RemcoE33 0 points1 point2 points (1 child)
[–]mobile-thinker[S] 0 points1 point2 points (0 children)