Introduction

This unique form validator plugin allows a maximum of 5 form validator plugins to be configured for a form element.

The plugin source codes can be found at JogetOSS Github. Feel free to clone and customize to suit your needs.

Configure Multi Form Validator

Note

  • This plugin only uses the element decorator for the first validator, and not the other possible 4 validators after.
    Example: If you are using the Default Validator and need to display the "mandatory" icon beside the form element, use the Default Validator as the first validator.

  • If the user input does not fulfill many of the configured validators, only the error message for the first validator that returns false will be displayed.

  • Custom error messages from the validator will not display when Reverse The Validation Result? is selected.
    Example: If you are using the Default Validator and select the Reverse The Validation Result, Custom Error Message to Show When Validation Fail will not display and instead Error Message for Reversed Validation Result will display.
NameDescription
Choose The First ValidatorSelect a form validator plugin here.
Choose The Second ValidatorSelect a form validator plugin here.
Choose The Third ValidatorSelect a form validator plugin here.
Choose The Fourth ValidatorSelect a form validator plugin here.
Choose The Fifth ValidatorSelect a form validator plugin here.
Reverse The Validation Result?Select to reverse the result from the validator chosen.
Error Message for Reversed Validation Result

Type in custom error message for when the validation result is reversed here.

Download Plugin

Download the plugin .jar and source files from https://github.com/jogetoss/multi-form-validator/releases/tag/7.0.1.




  • No labels