Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8125135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:42:46+00:00 2026-06-06T06:42:46+00:00

Hi and Good day to all, Google App Script can be used in so

  • 0

Hi and Good day to all,

Google App Script can be used in so many ways. I know cause I have tried some of them but Iam not an expert so, the situation is.

I have created an Spreadsheet

create a form using the new UI Building that comes with the script editor.
named:gtest01
UI compose of:

  • label, id=label_caption
  • button 1, id=button_hide, event-onmouseclick=hide_label
  • button 2, id=button_show, event-onmouseclick=show_label
  • button 3, id=button_message, event-onmouseclick=message_me

now, the code is:

/* This is so when I want to just deploy it as a [webapp] using the
script editor -> Publish Deploy as Web App
*/
function doGet(e) {
 var app = UiApp.createApplication().setTitle("Sheet Application");
  app.add(app.loadComponent("gtest01"));
  Logger.log("Application UI Loaded");  
  return app;
}

function message_me(e) {  
  Browser.msgBox("my message"); 
}

function hide_label(e) {
  var app = UiApp.getActiveApplication();
  label =app.getElementById("label_caption");
  label.setVisible(false);
}

function show_label(e) {
  var app = UiApp.getActiveApplication();
  label =app.getElementById("label_caption");
  label.setVisible(true);
}

// this code is for when the spreadsheet is shared so they can access the form
function showform_() {
  var app = UiApp.createApplication();
  app.add(app.loadComponent("gtest01"));
  SpreadsheetApp.getActiveSpreadsheet().show(app); 
}

function onOpen() {
  var ss = SpreadsheetApp.getActiveSpreadsheet();
  var menuEntries = [];
  menuEntries.push({name: "Show Form", functionName: "showform_"});
  ss.addMenu("e-Test", menuEntries);
}

First scenario is that when spreadsheet is shared

  • when menu is clicked the form will load – thats good
  • when show and hide button nothing happens – why and how can i fixed
    this?
  • when message button is click – message will show but the form will
    close, how can I display a message without closing the form?

Second scenario is that when publish as Webapp.

  • When Developer Link is Access the UI is always updated – ok
  • When URL Link is Access the UI is always updated its like it is
    cache, how can I fixed this?
  • on dev link: when show and hide button nothing happens – why and how
    can i fixed this?
  • on dev link: when message button is click – will generate an error,
    how can I display an alert message on WebApp

Please help I have search and tried the sample codes and answer in the forum am missing something.

Thanks

Nick Ace

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T06:42:48+00:00Added an answer on June 6, 2026 at 6:42 am

    First scenario
    when show and hide button nothing happens – why and how can i fixed this?

    In your functions, use return app at the end. Unless you return the app object, the UI doesn’t get updated.

    how can I display a message without closing the form? – Try
    SpreadsheetApp.getActiveSpreadsheet().toast()

    2nd scenario

    When URL Link is Access the UI is always updated its like it is cache, how can I fixed this? – Save your most recent code as a version

    on dev link: when show and hide button nothing happens – Again return app will take care of this

    on dev link: when message button is click… – Browser.msgBox is not supported in a web app.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good day all, I have a preset situation that can't be changed, that revolves
Good day to all. I have this structure <html> <iframe> <div id=idd>Some Content</div> </iframe>
Good Day all, I have an existing site built. I was wondering, how can
Good day to all. I have a little problem. Can anyone tell me or
Good day to all... I have some little problems with ffserver and ffmpeg... What
I have been looking for a good solution all day, but Google evolves so
Good day all, first of all, what am trying to do is have an
Good day to all, I have the following problem I have to convert the
Good day everyone. I have been having the same problem all day at work
Good day, all. I know that this is a pretty basic question in terms

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.