Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the above example we're validating the service_field_1 field using the isEmpty rule and negating it using the negate attribute. This ensures that the service_field_1 field is not empty when submitted. If it is empty a Service Field 1 must not be empty error will be displayedthe rule validation fails (service_field_1 is empty) the message we defined using the message attribute will be displayed to the user.