[英]Can we insert textbox/button in Google Spreadsheet without using any Google Form like Excel insert objects?
As we can insert any form objects in excel, like sameway in a sheet of google spreadsheet Can we insert textbox/button date picker. 由于我们可以在excel中插入任何表单对象,就像在Google电子表格中一样,是否可以插入文本框/按钮日期选择器? Or We should go with Google Forms for that.
或者我们应该使用Google Forms。
Please confirm anyone. 请确认任何人。 It would be great.
这会很棒。
Thanks in advance 提前致谢
You can create an apps script and put a trigger to call it whe the user opens the spreadsheet. 您可以创建一个应用脚本,并在用户打开电子表格时放置一个触发器来调用它。 Here is an example of apps script
这是应用程序脚本的示例
function onOpen() {
var sheet = SpreadsheetApp.getActiveSpreadsheet();
var app = UiApp.createApplication();
var form = app.createFormPanel();
var flow = app.createFlowPanel();
flow.add(app.createTextBox().setName("textBox"));
flow.add(app.createListBox().setName("listBox").addItem("option 1").addItem("option 2"));
flow.add(app.createSubmitButton("Submit"));
form.add(flow);
app.add(form);
sheet.show(app);
};
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.