This project is no longer maintained and no further public releases are planned.

No further support will be given.

Feel free to fork the git repository.

Validators

You can enter as many Validators as you like. Each entry requires a class name of the Validator. Optionally you can enter a specific configuration for the Validator in the config section. For detailed information about the available error checks have a look at the section Error Checks.

Version added

1.0.0

TypoScript path

plugin.Tx_Formhandler.settings.validators copy to clipboard

Example code

validators.1 {
  class = Validator\Default

  /*
  * Some times you maybe want to disable error checks if the user
  * filled out a specific fields or else.
  * Temporary disable error checking for the entered fields by setting
  * this option.                        
  */        
  
  config {
    disableErrorCheckFields = firstname,lastname
    fieldConf {
      firstname.errorCheck {
        1 = required
        2 = maxLength
        2.value = 20
      }
      email.errorCheck {
        1 = required
        2 = email
      }
    }
  }
}
validators.2 {
  class = Vendor\MyPackage\ Validator\CustomValidator
  config {
    param = value
  }
}

Validator\DefaultValidator

This is the default Validator. It supports all available error checks.

Validator\Ajax

This validator is called when using AJAX validation. Please do not add this class manually to your TypoScript.