我拥有一个谷歌表格,我怎么能得到它的js脚本?
我单击脚本编辑器,但没有相应的js我可以找到.
我已经在互联网上搜索但没有预期的答案.
- 2017年8月20日更新
假设我拥有这样一个表单: Sample Form.
如何获取此表单的相应Google脚本?
即
function myFunction() {
// Create a new form, then add a checkbox question, a multiple choice question,
// a page break, then a date question and a grid of questions.
var form = FormApp.create('Sample Form');
var sect1 = form.addSectionHeaderItem();
var item = form.addCheckboxItem();
item.setTitle('What condiments would you like on your hot dog?');
item.setChoices([item.createChoice('Ketchup'), item.createChoice('Mustard'), item.createChoice('Relish')]);
var item2 = form.addMultipleChoiceItem().setTitle('Do you prefer cats or dogs?');
// .setChoiceValues(['Cats','Dogs'])
// .showOtherOption(true);
var …Run Code Online (Sandbox Code Playgroud) javascript google-apps-script google-forms google-apps-script-editor