Hi,
A script embedded in new google sites was working fine until recently. In my code, the goGet method is used to load the page (which works fine). In this doGet function, there is also a line to set the action variable :
function doGet(e){
var html= HtmlService.createTemplateFromFile('index')
html.action = ScriptApp.getService().getUrl();
return html.evaluate;
}
And action is a variable in the index.html as seen below:
<form id="keyForm" onsubmit="handleFormSubmit(this)" action="<?= action ?>" method="post">
The "action" here is to open a new page
'Thanks.html' on form submit.
function doPost(e) {
var html= HtmlService.createTemplateFromFile('Thanks.html');
return html.evaluate;
}
The new page opens when I test the script as a standalone webApp but has suddenly stopped opening when script embedded in google site is run. So, when I click Submit, all the data is saved as intended but the Thanks.html does not open.
Can someone help understand the reason for this sudden issue and also help with a solution?