Shwetank Tripathi
Shwetank Tripathi

Reputation: 70

Google App script without log in to google account

I recently started working on google app script. I've add a script with my google spreadsheet. that script runs on loading of spreadsheet.

function onOpen(e) {
  //This function loads an HTML form on loading of spreadsheet.
  showForm();
  SpreadsheetApp.getUi()
  .createMenu('Custom Menu')
  .addItem('Show Form', 'showForm')
  .addToUi();

}

But when I am sharing this spreadsheet with email account other than gmail, Script dosen't execute.

Do I need to login with google account in order to run this script ?

Upvotes: 0

Views: 2275

Answers (1)

Antoine Colson
Antoine Colson

Reputation: 656

Most scripts can't run if the user is not logged into their Google account on a computer. The createMenu() method can't run without the user logged in.

Upvotes: 1

Related Questions