Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run a google standalone apps script for UI from the Script Editor

I have a standalone Google Apps Script to implement a UI, with a doGet function.

I can deploy it, and access by a URL, and it works.

I can't see how/if I can test from the Script Editor. I can hit Run in the Editor, it executes the doGet script, but all that does is return an app object.

like image 653
Alan Avatar asked Oct 22 '22 09:10

Alan


1 Answers

The closest thing you can do at present is to click.

publish (in the top menu) > Depoly as web app > Below the 'Current web app URL' you can select 'Test webapp for your latest code'.

This will open a browser tab with the current webapp while still not having to save a revision and publish.

The other option is the develop your UI in the context of a spreadsheet and call

SpreadsheetApp.getActiveSpreadsheet();

But this has its obvious disadvantages.

like image 78
rogermushroom Avatar answered Nov 03 '22 21:11

rogermushroom