Stay organized with collections
Save and categorize content based on your preferences.
DataValidation
The base DataValidation that contains properties common to all validations, such as help text.
Validations can be added to certain Form items.
//Addatextitemtoaformandrequireittobeanumberwithinarange.vartextItem=form.addTextItem().setTitle('Pick a number between 1 and 100?');vartextValidation=FormApp.createTextValidation().setHelpText(“Inputwasnotanumberbetween1and100.”).requireNumberBetween(1,100);textItem.setValidation(textValidation);
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-02 UTC."],[[["DataValidation objects define requirements for user input in Google Forms, such as specific data types or value ranges."],["These validations can be applied to form items like text fields to ensure data integrity and guide user responses."],["`getHelpText()` retrieves the message displayed to the user when input fails validation, aiding in understanding errors."]]],[]]