I can't run any function from sidebar. Nothing happens when I click the button.
Sidebar HTML:
<input type="button" class="button" value="Stäng via test" onclick="google.script.run.test();">
Code:
function test() {
SpreadsheetApp.getActive().getActiveSheet().getRange('A1').setValue('I was called!');
}
onclick="google.script.host.close();"
works without problem strangely.