New features
Error message
- #2, #387: Provide the default message
- #93, #385: Support translating error messages
- #282, #347, #465: Support dynamic message
Events
Support dynamic option
- #430: between, greaterThan, lessThan add support for comparing to other field, return value of a callback function
- #447: zipCode validator allow to set the country code via another field or callback, thanks to @AlaskanShade
Support dynamic fields
- #125: Support dynamic fields
- #130: Add addField() and removeField() methods for managing dynamic fields, thanks to @jcnmulio
New options
- #164: Add container option for indicating the element showing all errors
- #175: Showing errors in tooltip or popover
- #297: Add feedbackIcons option to enabled/disable feedback icons for particular fields
- #356: Add group option
- #420: Add enabled option enable/disable particular validator
- #422: Add excluded option to exclude particular field
New APIs
- #211, #235: Add getInvalidFields() method that returns all invalid fields
- #275: Add destroy() method
- #316: Add isValidContainer() method
- #323: Add isValidField() method
- #406: Add revalidateField() method
- #433: Add resetField() method
- #434: Add updateMessage() method
- #416, #448: Add updateOption() method for updating the particular validator option, thanks to @AlaskanShade
Misc
- #320: Add
separator
option for the date validator - #332: Add UK phone number support for the phone validator, thanks to @aca02djr
- #336: Add
$field
instance to the callback validator - #374: Add Singapore postal code for the zipCode validator, thanks to @thisisclement
Changes
$.fn.bootstrapValidator.helpers
renamesmod_11_10
tomod11And10
,mod_37_36
tomod37And36
- Remove
submitHandler
option. See upgrading to v0.5.0 guide.
Improvements
- #244: Only enable the submit buttons if all fields are valid, thanks to @smeagol74
- #262: Improve the updateStatus() method. The plugin now doesn't show the errors, feedback icons of given field if there are uncompleted validators
- #274: Fix feedback icons in
input-group
, thanks to @tiagofontella - #287, #291: Only send the submit button which is clicked. It's an enhancement for #238
- #348: The uri validator now provides an option to support private/local network address
- #364: Clicking the feedback icon also effect to the checkbox, radio fields
- #366: Don't change the enable setting when the new one is the same
- #382: Add JSHint to Grunt build
- #388: Allow to override the default options. Useful for using multiple forms in the same page
- #393: The remote validator adds support for
dynamic
url
and method type (GET/POST), thanks to @ericnakagawa - #426: Add test suite
- #431: Add built time to the build file
- #432: Define the callback via
data-bv-callback-callback
attribute - #451: Validation of numeric fields with decimal steps, thanks to @Azuka
- #456: Adjust the feedback icon position for
.input-group
element
Bug fixes
- #288: Fix date validator issue on IE8
- #292: Fix identical validator issue with not clearing
has-error
class, thanks to @alavers - #305, #306, #307: Fix
inclusive
option in the between, greaterThan and lessThan validators, thanks to @johanronn77 - #310, #475: The date validator still return valid if the value doesn't contain digits
- #311: file validation extension is case sensitive
- #312: Fix broacast typo in the uri validator, thanks to @mrpollo
- #313: Fix the file validator issue on IE 8
- #314: The creditCard validator doesn't work on IE 8
- #315: The cvv validator doesn't work on IE 8
- #325: The
threshold
option doesn't work on IE 8 - #358: The zipCode validator doesn't work for Canadian zip code
- #371, #483, #487: Added the letters 'H', 'W' and 'Z' in letter list for Canada postal code, thanks to @jzhang6
- #375: Don't submit form when the callback validator completes and the submit button isn't clicked
- #377: The id, vat
validators should return
false
if the country code is not supported - #389: When using multiple forms with HTML attributes on the same page, the plugin options will be the same as the last one
- #401: stringLength validator allows spaces after max length
- #411: Fix the ean validator when the check digit is zero, thanks to @manish-in-java
- #417: IPv6 validator doesn't work
- #425: Custom trigger event is ignored by field validators
- #447: Skip the
_isExcluded()
when initializing the form. This fixes #269, #273. Thanks to @AlaskanShade - #492, #493: Fixed Chilean ID (RUT/RUN) finished in 'K' or 'k', thanks to @marceloampuerop6
Language packages
- #396: German language package, thanks to @logemann
- #474: Hungarian language package, thanks to @blackfyre
- #478: Simplified and traditional Chinese language package, thanks to @tureki
- #494: Chilean Spanish language package, thanks to @marceloampuerop6
Document
- #259: Typo "Support almost Bootstrap forms", thanks to @lloydde
- #261: English fix to 'amazing contributors' section, thanks to @lloydde
- #278: Update the choice validator document, thanks to @MrC0mm0n
- #303: Fix typo in remote validator document, thanks to @MartinDevillers
- #334: No ID is specified on the form object for registration, thanks to @jjshoe
- #423: Add default column to settings table, thanks to @MartinDevillers
- #452: Update 'United State' to 'United States', thanks to @mike1e
Upgrading to v0.5.0
See upgrading to v0.5.0 guide.
Contributors
Thank to the contributor:
- @aca02djr
- @AlaskanShade
- @alavers
- @Azuka
- @blackfyre
- @ericnakagawa
- @jcnmulio
- @jjshoe
- @johanronn77
- @jzhang6
- @lloydde
- @logemann
- @manish-in-java
- @marceloampuerop6
- @MartinDevillers
- @mike1e
- @MrC0mm0n
- @mrpollo
- @smeagol74
- @thisisclement
- @tiagofontella
- @tureki