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

Send feedback about...

Apps Script
Apps Script
Need help? Visit our support page.