Class GridValidationBuilder

GridValidationBuilder

A DataValidationBuilder for a GridValidation.

// Add a grid item to a form and require one response per column.
var gridItem = form.addGridItem();
gridItem.setTitle('Rate your interests')
  .setRows(['Cars', 'Computers', 'Celebrities'])
  .setColumns(['Boring', 'So-so', 'Interesting']);
var gridValidation = FormApp.createGridValidation()
  .setHelpText(“Select one item per column.”)
  .requireLimitOneResponsePerColumn()
  .build();
gridItem.setValidation(gridValidation);

Methods

MethodReturn typeBrief description
requireLimitOneResponsePerColumn()GridValidationBuilderRequires 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

GridValidationBuilder — this validation builder, for chaining

Feedback geben zu...