Plugin Author
Meitar
(@meitar)
Your Apps Script is outputting a complete, framed webpage. To use this plugin to embed the HTML output of Google Apps Scripts into your pages, you need to create raw text from Google Apps Script. In other words, use TextOutput, not HtmlOutput.
So in code
function doGet(e) {
var template = HtmlService.createTemplateFromFile('Form.html');
template.action = ScriptApp.getService().getUrl();
return template.evaluate().setTitle('Prova Videonauti nuova');
}
function include(filename) {
return HtmlService.createHtmlOutputFromFile(filename)
.setSandboxMode(HtmlService.SandboxMode.IFRAME)
.getContent();
}
I have to change html to text ?
Just this?
Nothing will be damaged, simply plugin will work?
I found this in your link
function doGet() {
return ContentService.createPlainTextOutput("hello world!");
}
how to integrate my script with this ?
Plugin Author
Meitar
(@meitar)
Sorry, I don’t help with custom programming on these forums. As I said:
you need to create raw text from Google Apps Script.
Yes nor me.
For this reason I use plugins and not write them on my own.
You say in description this plugin work with Google App Script (I have one not written by me but provided) and it actually doesn’t work.
I need help in changing what should work in your description but do not.