google apps script - Automatically Redirecting to a Page -
inside button click handler, i'm creating new web page so:
var page = sitesapp.getpagebyurl(url).createpagefromtemplate(title, name, template); and want redirect user automatically page.
i wasn't able find information, can done?
this cannot done in uiapp it's doable in htmlservice:
function doget() { return htmlservice.createhtmloutput( "<form action='http://www.google.com' method='get' id='foo'></form>" + "<script>document.getelementbyid('foo').submit();</script>"); } this should easier; please file feature request in issue tracker , see how can make more pleasant.
(edit: clear, there's no way uiapp callback; entire app have using htmlservice work.)
Comments
Post a Comment