Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't see functions after publishing the add-on #7

Open
Eliagandolfi opened this issue Dec 30, 2021 · 1 comment
Open

Can't see functions after publishing the add-on #7

Eliagandolfi opened this issue Dec 30, 2021 · 1 comment

Comments

@Eliagandolfi
Copy link

Eliagandolfi commented Dec 30, 2021

If I run the script as a Google App-script, it works as great
Screenshot 2021-12-30 at 15 06 37

but if I publish the add-on, the functions disappear, and I can only see the "help" option
Screenshot 2021-12-30 at 15 06 47

@Eliagandolfi
Copy link
Author

For reference, I solved it by tweaking the onOpen() function as below

function onOpen() {
  var ui = SpreadsheetApp.getUi().createAddonMenu();
  ui.addItem('Import Question', 'importQuestion');
  ui.addItem('Import All Questions', 'importAllQuestions');
  ui.addToUi();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant