Skip to main content

validateEventForm static method

[String?] validateEventForm(

  1. [[String] value, ]
  2. [[String?] label]

)

Method to validate event form.

params:

  • value: the value of the field
  • label: the (optional) label of the field

returns:

  • String?: error message if field is invalid.

Implementation

static String? validateEventForm(String value, String? label) 
  1. talawa
  2. validators
  3. Validator
  4. validateEventForm static method
Validator class