Class ParagraphTextValidationBuilder

ParagraphTextValidationBuilder

ParagraphTextValidation के लिए DataValidationBuilder.

// 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.')
        .requireTextLengthGreaterThan(100);
paragraphTextItem.setValidation(paragraphtextValidation);

तरीके

तरीकारिटर्न टाइपसंक्षिप्त विवरण
requireTextContainsPattern(pattern)ParagraphTextValidationBuilderजवाब में पैटर्न होना ज़रूरी है.
requireTextDoesNotContainPattern(pattern)ParagraphTextValidationBuilderजवाब में पैटर्न शामिल नहीं होना चाहिए.
requireTextDoesNotMatchPattern(pattern)ParagraphTextValidationBuilderपैटर्न से मेल न खाने पर जवाब देना ज़रूरी है.
requireTextLengthGreaterThanOrEqualTo(number)ParagraphTextValidationBuilderइसके लिए, जवाब की लंबाई वैल्यू से ज़्यादा या उसके बराबर होनी चाहिए.
requireTextLengthLessThanOrEqualTo(number)ParagraphTextValidationBuilderजवाब की लंबाई, वैल्यू से कम होनी चाहिए.
requireTextMatchesPattern(pattern)ParagraphTextValidationBuilderपैटर्न से मेल खाने वाला जवाब देना ज़रूरी है.

ज़्यादा जानकारी वाला दस्तावेज़

requireTextContainsPattern(pattern)

जवाब में पैटर्न होना ज़रूरी है.

पैरामीटर

नामटाइपब्यौरा
patternStringटेक्स्ट में पैटर्न शामिल होना चाहिए

वापसी का टिकट

ParagraphTextValidationBuilder — इसका इस्तेमाल चेनिंग के लिए किया जाता है


requireTextDoesNotContainPattern(pattern)

जवाब में पैटर्न शामिल नहीं होना चाहिए.

पैरामीटर

नामटाइपब्यौरा
patternStringटेक्स्ट में पैटर्न शामिल नहीं होना चाहिए

वापसी का टिकट

ParagraphTextValidationBuilder — इसका इस्तेमाल चेनिंग के लिए किया जाता है


requireTextDoesNotMatchPattern(pattern)

पैटर्न से मेल न खाने पर जवाब देना ज़रूरी है.

पैरामीटर

नामटाइपब्यौरा
patternStringटेक्स्ट, पैटर्न से मेल नहीं खाना चाहिए

वापसी का टिकट

ParagraphTextValidationBuilder — इसका इस्तेमाल चेनिंग के लिए किया जाता है


requireTextLengthGreaterThanOrEqualTo(number)

इसके लिए, जवाब की लंबाई वैल्यू से ज़्यादा या उसके बराबर होनी चाहिए.

पैरामीटर

नामटाइपब्यौरा
numberIntegerपैराग्राफ़ के टेक्स्ट की लंबाई, इस वैल्यू से ज़्यादा होनी चाहिए

वापसी का टिकट

ParagraphTextValidationBuilder — इसका इस्तेमाल चेनिंग के लिए किया जाता है


requireTextLengthLessThanOrEqualTo(number)

जवाब की लंबाई, वैल्यू से कम होनी चाहिए.

पैरामीटर

नामटाइपब्यौरा
numberIntegerपैराग्राफ़ के टेक्स्ट की लंबाई, इस वैल्यू से कम या इसके बराबर होनी चाहिए

वापसी का टिकट

ParagraphTextValidationBuilder — इसका इस्तेमाल चेनिंग के लिए किया जाता है


requireTextMatchesPattern(pattern)

पैटर्न से मेल खाने वाला जवाब देना ज़रूरी है.

पैरामीटर

नामटाइपब्यौरा
patternStringटेक्स्ट, पैटर्न से मेल खाना चाहिए

वापसी का टिकट

ParagraphTextValidationBuilder — इसका इस्तेमाल चेनिंग के लिए किया जाता है