A DataValidationBuilder for a CheckboxGridValidation
.
// Add a checkbox grid item to a form and restrict it to one response per column. var checkboxGridItem = form.addCheckboxGridItem(); checkboxGridItem.setTitle('Where did you celebrate New Years?') .setRows(['New York', 'San Francisco', 'London']) .setColumns(['2014', '2015', '2016', '2017']); var checkboxGridValidation = FormApp.createcheckboxGridValidation() .setHelpText(“Select one item per column.”) .requireLimitOneResponsePerColumn() .build(); checkboxGridItem.setValidation(checkboxGridValidation);
Methods
Method | Return type | Brief description |
---|---|---|
requireLimitOneResponsePerColumn() | CheckboxGridValidationBuilder | Requires limit of one response per column for a grid item. |
Detailed documentation
requireLimitOneResponsePerColumn()
Requires limit of one response per column for a grid item.
Return
CheckboxGridValidationBuilder
— this validation builder, for chaining