// 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);
تاریخ آخرین بهروزرسانی 2024-12-17 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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"]],["تاریخ آخرین بهروزرسانی 2024-12-17 بهوقت ساعت هماهنگ جهانی."],[[["`GridValidationBuilder` facilitates the creation of validation rules for grid items within Google Forms."],["It offers the functionality to enforce a single response per column in grid questions, enhancing data integrity."],["The `requireLimitOneResponsePerColumn()` method is central to establishing this constraint, streamlining response collection."],["Developers can leverage the `GridValidationBuilder` to tailor validation logic, ensuring responses meet specified criteria."]]],[]]