我创建了这个脚本,它使一个表单发布一个模糊,我希望它被提交到电子表格,但我不断得到这个错误,Exception: incorrect range width, was 3 but should be 5
无论我更改getRange中的行数,此错误中的数字始终是相同的.有什么方法可以更新我不知道的代码吗?我每次更改代码时都会部署代码.
function doGet() {
var app = UiApp.createApplication().setTitle('Form for news update');
//panel for form
var panel = app.createVerticalPanel().setId('panel');
//elements for the form
var postTitle = app.createLabel('Title');
var title = app.createTextBox().setId('title');
var postLabel = app.createLabel('new post:');
var post = app.createTextArea().setId('post');
var btn = app.createButton('Submit');
//handler to execute posting by click the button
var handler = app.createServerClickHandler('Submit');
handler.addCallbackElement(panel);
//add this handler to the button
btn.addClickHandler(handler);
//add the elements to the panel …
Run Code Online (Sandbox Code Playgroud)