Validate all fields

It might be used when you want to validate the form manually when pressing given button.

validate(): Promise


If you want the form to be validated automatically when pressing its Submit button, use the SubmitButton plugin

    .then(function(status) {
        // status can be one of the following value
        // 'NotValidated' (FormValidation.Status.NotValidated): The form is not yet validated
        // 'Valid' (FormValidation.Status.Valid): The form is valid
        // 'Invalid' (FormValidation.Status.Invalid): The form is invalid