How do I remove/overrite the contents of a default menu on google add-on using Google App Script?

How do I remove/overrite the contents of a default menu on google add-on using Google App Script?

You cannot remove or modify those menu items just like you cannot modify any of the other Google menu items – they are built-in.

Install and Help are added by Google. You cant remove or override them.

Install is shown when the add-on was enabled in the form but not yet installed by the active user.

Help shows the add-on description, the Learn more button set in the G Suite Marketplace SDK settings for the add-on, and may also show other buttons also based on the G Suite Marketplace SDK settings.

Other buttons that can be shown on the built-in Help dialog are

  • Report an issue
  • View in store

Resources

How do I remove/overrite the contents of a default menu on google add-on using Google App Script?

On reading a few documents, I realised that the Install button triggers this function:

/**
 * The event handler triggered when installing the add-on.
 * @param {Event} e The onInstall event.
 */
function onInstall(e) {
  onOpen(e);
}

I installed various add-ons and found that the Help button triggers a generic Help dialog box the content of which are displayed after the deployment of an add-on.
sample

Leave a Reply

Your email address will not be published.