// Add a paragraph text item to a form and require the answer to be at least 100
// characters.
const form = FormApp.create('My Form');
const paragraphTextItem =
form.addParagraphTextItem().setTitle('Describe yourself:');
const paragraphtextValidation =
FormApp.createParagraphTextValidation()
.setHelpText('Answer must be more than 100 characters.')
.requireTextLengthGreaterThan(100);
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"]],["最后更新时间 (UTC):2024-12-02。"],[[["`ParagraphTextValidationBuilder` lets you set validation rules for paragraph text responses in Google Forms."],["You can enforce rules like minimum/maximum text length, and require or exclude specific patterns in the text."],["All validation methods return the `ParagraphTextValidationBuilder` object itself, enabling method chaining for concise code."],["Use this class with `FormApp.createParagraphTextValidation()` to define the validation for a paragraph text item."],["Refer to the detailed documentation and method table for specifics on each validation rule and its parameters."]]],[]]