1000hz / bootstrap-validator

A user-friendly HTML5 form validation jQuery plugin for Bootstrap 3
http://1000hz.github.io/bootstrap-validator
MIT License
2.38k stars 1.07k forks source link

Updated runValidators function #648

Open Darkzor opened 5 years ago

Darkzor commented 5 years ago

Added a check for an "is-custom" parameter to bypass validation checks on the field itself, within the runValidators function, in case we need it for an advanced custom rule. Changes were made so that we can have a solution for the following scenario: there are two fields, f1 that doesn't have a required parameter and f2 and we want to show an error under f1 if neither fields are valid from the app logic perspective.