すべての検証に共通するプロパティ(ヘルプテキストなど)を含むベースの DataValidation。特定の Form アイテムに検証を追加できます。
//Addatextitemtoaformandrequireittobeanumberwithinarange.vartextItem=form.addTextItem().setTitle('Pick a number between 1 and 100?');vartextValidation=FormApp.createTextValidation().setHelpText(“Inputwasnotanumberbetween1and100.”).requireNumberBetween(1,100);textItem.setValidation(textValidation);
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2024-12-22 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."]]],[]]