//AddacheckBoxitemtoaformandrequireexactlytwoselections.varcheckBoxItem=form.addCheckboxItem();checkBoxItem.setTitle('What two condiments would you like on your hot dog?');checkBoxItem.setChoices([checkBoxItem.createChoice('Ketchup'),checkBoxItem.createChoice('Mustard'),checkBoxItem.createChoice('Relish')]);varcheckBoxValidation=FormApp.createCheckboxValidation().setHelpText(“Selecttwocondiments.”).requireSelectExactly(2).build();checkBoxItem.setValidation(checkBoxValidation);
[[["เข้าใจง่าย","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-08-21 UTC"],[[["`CheckboxValidation` is used to set validation rules specifically for checkbox items within Google Forms."],["It allows you to define requirements like the number of choices a user must select using methods like `requireSelectExactly()`."],["A help text can be associated with the validation to guide the user using `setHelpText()`."]]],[]]