【发布时间】:2016-12-07 03:25:39
【问题描述】:
我正在创建一个表单,供用户在 Google 电子表格中输入信息。他们将访问电子表格,然后单击链接到脚本的图像。单击图像时,我希望出现一个表单。然后我希望表单中的输入可以在脚本中访问。
我能够创建表单,但表单没有出现在工作表上。这是迄今为止 GS 脚本的代码
function startForm() {
var form = FormApp.create('myForm');
var item = form.addCheckboxItem();
item.setTitle('What would you like to do?');
item.setChoices([
item.createChoice('Budget Inquiry'),
item.createChoice('Add Purchase')
]);
var choices = item.getChoices();
// then I can respond to the user's choice
}
我希望这个简单的表格只出现在谷歌表格上。任何意见将不胜感激。
【问题讨论】:
-
欢迎来到Stack Overflow。请拨打tour 并结帐How to Ask。
标签: google-apps-script google-sheets google-forms