// Add a paragraph text item to a form and require the answer to be at least 100// characters.constform=FormApp.create('My Form');constparagraphTextItem=form.addParagraphTextItem().setTitle('Describe yourself:');constparagraphtextValidation=FormApp.createParagraphTextValidation().setHelpText('Answer must be more than 100 characters.').requireTextLengthGreaterThanOrEqualTo(100).build();paragraphTextItem.setValidation(paragraphtextValidation);
[[["เข้าใจง่าย","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"]],["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eParagraphTextValidation is a tool in Google Forms to set validation rules for paragraph text items.\u003c/p\u003e\n"],["\u003cp\u003eIt allows setting requirements like minimum character length with help text to guide users.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use \u003ccode\u003eParagraphTextValidation\u003c/code\u003e through Apps Script to enforce these rules within their forms.\u003c/p\u003e\n"]]],[],null,["ParagraphTextValidation\n\nA DataValidation for a [ParagraphTextItem](/apps-script/reference/forms/paragraph-text-item).\n\n```javascript\n// Add a paragraph text item to a form and require the answer to be at least 100\n// characters.\nconst form = FormApp.create('My Form');\nconst paragraphTextItem =\n form.addParagraphTextItem().setTitle('Describe yourself:');\nconst paragraphtextValidation =\n FormApp.createParagraphTextValidation()\n .setHelpText('Answer must be more than 100 characters.')\n .requireTextLengthGreaterThanOrEqualTo(100)\n .build();\nparagraphTextItem.setValidation(paragraphtextValidation);\n```"]]