How to set cell value from google sheet as default value of textarea for HTML sidebar?
问题 I have a standalone Google script using as library. This library contains HTML form using like sidebar with one <textarea> element and scripts. I want to get some value from a cell of active google spreadsheet to set it as default value of <textarea> element in the sidebar. And then update it with manually typing text and send it as new value to the source cell keeping sidebar is open. Library's scripts function showSidebar() { var html = HtmlService.createHtmlOutputFromFile('method.html')