i am trying to submit a form using doPost but i keep getting the "Unknown macro doPost" error.
The templated Html:
<?var url = ScriptApp.getService().getUrl().replace("exec","dev");?>
...
<form action='<?=url?>' method="post">
<fieldset>
...
<input type="submit" value="Submit"/>
</fieldset>
</form>
The script:
function doPost(requestInfo){
Logger.log("Entering doPost()\n");
return HtmlService.createHtmlOutput("<h1>404</h1>");
}
Any ideas why that's happening?