//Addacheckboxgriditemtoaformandrestrictittooneresponsepercolumn.varcheckboxGridItem=form.addCheckboxGridItem();checkboxGridItem.setTitle('Where did you celebrate New Years?').setRows(['New York','San Francisco','London']).setColumns(['2014','2015','2016','2017']);varcheckboxGridValidation=FormApp.createcheckboxGridValidation().setHelpText(“Selectoneitempercolumn.”).requireLimitOneResponsePerColumn().build();checkboxGridItem.setValidation(checkboxGridValidation);
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-08-21。"],[[["`CheckboxGridValidationBuilder` helps create validations for checkbox grid items in Google Forms."],["It allows setting restrictions like limiting responses to one per column."],["The `requireLimitOneResponsePerColumn()` method enforces this single response restriction."],["This builder is used with `setValidation()` on a checkbox grid item to apply validation rules."]]],[]]