This cannot be done in UiApp, but it can be done in the HtmlService:
function doGet() {
return HtmlService.createHtmlOutput(
"<form action='http://www.google.com' method='get' id='foo'></form>" +
"<script>document.getElementById('foo').submit();</script>");
}
It should be easier; please write a feature request in problem tracking and we will see how we can make it more enjoyable.
(Edit: To be clear, there is no way to do this from a UiApp callback, your entire application will need to use the HtmlService for this to work.)
source
share