How to run HTML from google library?
问题 I have a Google Library with HTML form, process form script addNewItem and script to run the form in popup window addItem . function addItem() { var html = HtmlService.createHtmlOutputFromFile('input/form.html'); SpreadsheetApp.getUi() .showModalDialog(html, 'Add New Recipe'); } function addNewItem(form_data) { var url = "SPREADSHEET_URL_TO_DATA_COLLECTION"; var ss = SpreadsheetApp.openByUrl(url); var sheet = ss.getSheetByName('List'); var asiaTime = Utilities.formatDate(new Date(), Session