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.

Interceptors

You can enter as many Interceptors as you like. Each entry requires a class name of the Interceptor. Optionally you can enter specific configuration for the Interceptor in the config section. The init interceptors are called before every time the form is displayed.

Version added

1.0.0

TypoScript path

plugin.Tx_Formhandler.settings.initInterceptors copy to clipboard

Example code

initInterceptors.1 {
  class = Interceptor\RemoveXSS
}
initInterceptors.2 {
  class = Vendot\MyPackage\Interceptor\CustomInterceptor
  config {
    param = value
  }
}

ou can enter as many Interceptors as you like. Each entry requires a class name of the Interceptor. Optionally you can enter specific configuration for the Interceptor in the config section. The save interceptors are called before the finishers are executed.

Version added

1.0.0

TypoScript path

plugin.Tx_Formhandler.settings.saveInterceptors copy to clipboard

Example code

saveInterceptors.1 {
  class = Tx_Formhandler_Interceptor_Filtreatment
}
saveInterceptors.2 {
  class = Tx_MyPackage_Interceptor
  config {
    param = value
  }
}

Interceptor\RemoveXSS

Removes malicious code from submitted values to prevent XSS attacks. This Interceptor is added automatically by Formhandler. It removes malicious code and by default some characters from the input val...

Interceptor\IPBlocking

If you do not want to use Captcha for your form, you can use this class to control how often the form is allowed to be submitted by a single IP address or in total.

Interceptor\ParseValues

Parse formatted values. Currently only floats such as "1.022.000,76 EUR". NOTE: x.xxx.xxx gets parsed to xxxxxxx but xx.xx to xx.xx.

Interceptor\AntiSpamFormTime

Spam protection for the form without Captcha. It parses the time the user needs to fill out the form. If the time is below a minimum time or over a maximum time, the submission is treated as Spam. If ...

Interceptor\CombineFields

With this interceptor you can combine values of different form fields into a new field, which will be accessible by other components later.

Interceptor\TranslateFields

This interceptor will load a given translation. You can use values of form fields to dynamically load translations.

Interceptor\StdWrap

With this interceptor you can use stdWrap functions on field values.