Class ParagraphTextValidation

ParagraphTextValidation

A DataValidation for a ParagraphTextItem.

 // Add a paragraph text item to a form and require the answer to be at least 100 characters.
 var paragraphTextItem = form.addParagraphTextItem().setTitle('Describe yourself:');
 var paragraphtextValidation = FormApp.createParagraphTextValidation()
   .setHelpText(“Answer must be more than 100 characters.”)
   .requireTextLengthGreatherThan(100);
 paragraphTextItem.setValidation(paragraphtextValidation);
 

发送以下问题的反馈:

此网页
Apps Script
Apps Script