When I do:
var file = DriveApp.createFile(pdf);
and add a 'succes' screen:
var html = HtmlService.createHtmlOutputFromFile('page')
.setSandboxMode(HtmlService.SandboxMode.IFRAME)
.setWidth(300)
.setHeight(100);
DocumentApp.getUi()
.showModalDialog(html, 'Done!');
How do I get button on this screen with a link to the made file? Can I use:
file.getUrl()
What code do I put on the html page?
<input type="button" value="OK" onclick="???" />
Any pointers are welcome.