// 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.').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"]],["上次更新時間:2024-12-22 (世界標準時間)。"],[[["`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."]]],[]]