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);
 

Methods

MethodReturn typeBrief description
getHelpText()StringGets the DataValidation's help text.

Detailed documentation

getHelpText()

Gets the DataValidation's help text. This text is shown to the user if the input fails validation.

Return

String — the DataValidation's help text

Send feedback about...

Apps Script
Apps Script