// Add a grid item to a form and require one response per column.constform=FormApp.create('My Form');constgridItem=form.addGridItem();gridItem.setTitle('Rate your interests').setRows(['Cars','Computers','Celebrities']).setColumns(['Boring','So-so','Interesting']);constgridValidation=FormApp.createGridValidation().setHelpText('Select one item per column.').requireLimitOneResponsePerColumn().build();gridItem.setValidation(gridValidation);
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Não contém as informações de que eu preciso","missingTheInformationINeed","thumb-down"],["Muito complicado / etapas demais","tooComplicatedTooManySteps","thumb-down"],["Desatualizado","outOfDate","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Problema com as amostras / o código","samplesCodeIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2024-12-22 UTC."],[[["`GridValidation` is used to apply validation rules specifically to grid items within Google Forms."],["It allows you to enforce restrictions like requiring one response per column within the grid, enhancing data quality."],["Developers can set custom help text to guide users on how to interact with the grid and meet validation criteria."]]],[]]