Class ParagraphTextValidation
ValidasiTeksParagraf
DataValidation untuk ParagraphTextItem
.
// Add a paragraph text item to a form and require the answer to be at least 100
// characters.
const form = FormApp.create('My Form');
const paragraphTextItem =
form.addParagraphTextItem().setTitle('Describe yourself:');
const paragraphtextValidation =
FormApp.createParagraphTextValidation()
.setHelpText('Answer must be more than 100 characters.')
.requireTextLengthGreaterThanOrEqualTo(100)
.build();
paragraphTextItem.setValidation(paragraphtextValidation);
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-12-22 UTC.
[null,null,["Terakhir diperbarui pada 2024-12-22 UTC."],[[["ParagraphTextValidation is a tool in Google Forms to set validation rules for paragraph text items."],["It allows setting requirements like minimum character length with help text to guide users."],["Developers can use `ParagraphTextValidation` through Apps Script to enforce these rules within their forms."]]],[]]