object
Function
A method to handle the onblur event for every input in the form
onblur event
Handle onchange event for input fields.
A method to handle the react form submission
onsubmit event
Get the default language being used
Get the raw object of messages for the given language
The name of the rule
Register Custom Validation Rules
The name of the rule.
Returns a boolean to represent a successful or failed validation.
An optional string where you can specify a custom error message. :attribute inside errorMessage will be replaced with the attribute name.
You can also add your own custom language by calling setMessages:
The name of the rule.
A error messages object
Set the locale string for error messages
string
Construct the React Input Form Validator instance. Find the available rules here.
let form = new ReactFormValidator(this, { email: "required|email", }, (fields) => { // Make ajax request here to send data to server }, { locale: 'en' })