Poly Track Google Sites Fix -

function doGet() return HtmlService.createHtmlOutputFromFile('PolyTrackForm') .setTitle('Poly Track Manager') .setSandboxMode(HtmlService.SandboxMode.IFRAME);

Delete default code and paste:

function addPolyItem(itemName, category, status, progress, dueDate, notes) const sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); sheet.appendRow([ new Date(), itemName, category, status, progress, dueDate, notes ]); return "Added successfully!"; poly track google sites

<script> document.getElementById('polyForm').addEventListener('submit', function(e) e.preventDefault(); google.script.run .withSuccessHandler(function(msg) document.getElementById('result').innerHTML = "<p style='color:green'>✅ " + msg + "</p>"; document.getElementById('polyForm').reset(); loadData(); ) .addPolyItem( document.getElementById('itemName').value, document.getElementById('category').value, document.getElementById('status').value, document.getElementById('progress').value, document.getElementById('dueDate').value, document.getElementById('notes').value ); ); function doGet() return HtmlService

Click File → New → HTML file , name it PolyTrackForm . sheet.appendRow([ new Date()

Scroll to Top