The base DataValidation that contains properties common to all validations, such as help text.
Validations can be added to certain
// Add a text item to a form and require it to be a number within a range. var textItem = form.addTextItem().setTitle('Pick a number between 1 and 100?'); var textValidation = FormApp.createTextValidation() .setHelpText(“Input was not a number between 1 and 100.”) .requireNumberBetween(1, 100); textItem.setValidation(textValidation);
|Method||Return type||Brief description|
|Gets the DataValidation's help text.|
Gets the DataValidation's help text. This text is shown to the user if the input fails validation.
String — the DataValidation's help text