<!-- Bootstrap CSS v4.0.0 alpha --><linkrel="stylesheet"href="/vendor/bootstrap/css/bootstrap.min.css"><!-- FormValidation CSS file --><linkrel="stylesheet"href="/vendor/formvalidation/dist/css/formValidation.min.css"><!-- jQuery v1.9.1 or higher --><scriptsrc="/vendor/jquery/jquery.min.js"></script><!-- Tether library, which is required if you want to use Bootstrap tooltip --><scriptsrc="/vendor/tether/js/tether.min.js"></script><!-- Bootstrap JS --><scriptsrc="/vendor/bootstrap/js/bootstrap.min.js"></script><!-- FormValidation plugin and the class supports validating Bootstrap form --><scriptsrc="/vendor/formvalidation/dist/js/formValidation.min.js"></script><scriptsrc="/vendor/formvalidation/dist/js/framework/bootstrap4.min.js"></script>
Don't confuse bootstrap(.min).js file provided by the Bootstrap
framework with bootstrap4(.min).js provided by FormValidation which
is placed inside the formvalidation/dist/js/framework directory.
They are two different files and both of them need to be included as
mentioned above.
<!-- Foundation v5 CSS --><linkrel="stylesheet"href="/vendor/foundation/css/normalize.min.css"><linkrel="stylesheet"href="/vendor/foundation/css/foundation.min.css"><!-- FormValidation CSS file --><linkrel="stylesheet"href="/vendor/formvalidation/dist/css/formValidation.min.css"><!-- jQuery v1.9.1 or higher --><scriptsrc="/vendor/jquery/jquery.min.js"></script><!-- Foundation JS file --><scriptsrc="/vendor/foundation/js/vendor/modernizr.js"></script><scriptsrc="/vendor/foundation/js/foundation/foundation.js"></script><scriptsrc="/vendor/foundation/js/foundation/foundation.tooltip.js"></script><!-- FormValidation plugin and the class supports validating Foundation form --><scriptsrc="/vendor/formvalidation/dist/js/formValidation.min.js"></script><scriptsrc="/vendor/formvalidation/dist/js/framework/foundation5.min.js"></script>
Don't confuse foundation(.min).js file provided by the Foundation
framework with foundation5(.min).js provided by FormValidation which
is placed inside the formvalidation/dist/js/framework directory.
They are two different files and both of them need to be included as
mentioned above.
Step 2: Setting the framework option
You need to set the framework option as
following:
#556: Return more information of the file
validator result, so user can display associated message if the selected file
doesn't match given extension, type or size
Allow to use multiple instance of validators via new alias option.
You can registry a new validator which is actually a built-in validator as following:
$(form).formValidation({framework:'...',fields:{username:{validators:{required:{alias:'notEmpty',message:'The username is required'}}}}});
or use multiple instance of same validators (for example, callback, as following piece of code):
$(form).formValidation({framework:'...',fields:{password:{validators:{checkUppercase:{alias:'callback',message:'The password must have at least one uppercase character',callback:function(value,validator,$field){...}},checkLowercase:{alias:'callback',message:'The password must have at least one lowercase character',callback:function(value,validator,$field){...}},checkDigits:{alias:'callback',message:'The password must have at least one digit',callback:function(value,validator,$field){...}},checkSpecial:{alias:'callback',message:'The password must have at least one special character',callback:function(value,validator,$field){...}}}}}});
#163: between, greaterThan, lessThan validators now show the message
where %s are replaced with the min, max,
value options when the input isn't a number
#165: integer and numeric validators support more locales by
providing new thousands and decimal separator options
#233: When using tooltip for multiple fields, it always shows on the last field
#234: Adjust the default messages when using the stringLength validator
The Spanish id, vat
validators add type to the return value. The type can be
DNI, NIE or CIF.
Bug fixes
#102, #166: Fix an issue on IE 10/11 that causes an input element with
placeholder attribute to be validated automatically when it's focused
#177: Fix the bug that the isValidContainer() method doesn't ignore
field which validators are totally disabled
#217: The field's enabled option doesn't
work in declarative mode
#231: Fix the bug causing the message
option for form isn't used. The plugin uses default message provided by each
validator instead