BootstrapValidator v0.5.0 Release Notes
Release Date: 2014-07-14 // almost 10 years ago-
๐ New Features
- 0๏ธโฃ #2, #387: Provide the default error messages
- ๐ #93, #385: Support translating error messages. Provide the Vietnamese language file
- #121: Add events for form validate successfully or not
- ๐ #125: Support dynamic fields
- ๐ #130: Add
addField()
andremoveField()
methods for managing dynamic fields, thanks to @jcnmulio - #164: Add
container
option for indicating the element showing all errors - #175: Showing errors in tooltip or popover
- #195: Add events for field validation
- #211, #235: Add new method
getInvalidFields()
that returns all invalid fields - #275: Add
destroy()
method - #282, #347: Use error message that is returned from callback, remote validators
- โ Add
status.field.bv
event which is triggered after updating the field status. It can be used to solve #300, #301 - #316: Add
isValidContainer(container)
method - #320: Add
separator
option to the date validator - #323: Add
isValidField(field)
method - #324: Add
success.validator.bv
anderror.validator.bv
events triggered after a validator completes - ๐ #332: Add UK phone number support for the phone validator, thanks to @aca02djr
- #336: Add
$field
instance to the callback validator - #356: Add
group
option - #374: Add Singapore postal code to the zipCode validator, thanks to @thisisclement
- #406: Add
revalidateField(field)
method - #433: Add
resetField(field, resetValue)
method - โก๏ธ #434: Add
updateMessage(field, validator, message)
method
๐ Changes
- ๐ #42: Remove the submit button from
submitHandler()
. You can use newgetSubmitButton()
method to get the clicked submit button - ๐ #109: Remove the
setLiveMode()
method $.fn.bootstrapValidator.helpers
renamesmod_11_10
tomod11And10
,mod_37_36
tomod37And36
- โ Remove
submitHandler()
option. Usesuccess.form.bv
event instead:
v0.4.5 and earlier versions
$(form).bootstrapValidator({ submitHandler: function(form, validator, submitButton) { ... } });
v0.5.0 Using
success.form.bv
event:$(form) .bootstrapValidator(options) .on('success.form.bv', function(e) { // Prevent form submission e.preventDefault(); var $form = $(e.target), validator = $form.data('bootstrapValidator'), submitButton = validator.getSubmitButton(); // Do whatever you want here ... });
๐ 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
- #297: Disable feedback icons for particular fields
- ๐ #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
- #371: Add H character to the Canadian postcode, thanks to @jzhang6
- ๐ #382: Add JSHint to Grunt build
- 0๏ธโฃ #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 - โก๏ธ #416, #448: Add
updateOption()
method for updating the particular validator option, thanks to @AlaskanShade - #420: Enable/disable particular validator
- #422: Exclude particular field by
excluded
option ordata-bv-excluded
attribute - โ #426: Add test suite
- ๐ #430: between, greaterThan, lessThan add support for comparing to other field, return value of a callback function
- ๐ #431: Add built time to the build file
- #432: Define the callback via
data-bv-callback-callback
attribute - #447: zipCode validator allow to set the country code via another field or callback, thanks to @AlaskanShade
- #451: Validation of numeric fields with decimal steps, thanks to @Azuka
- #456: Adjust the feedback icon position for
.input-group
element - ๐ #465: Support dynamic message
๐ 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
- #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 - #483, #487: Added the letters 'W' and 'Z' in the second and third letter list for Canada postal code, thanks to @jzhang6
- ๐ #492, #493: Fixed Chilean ID (RUT/RUN) finished in 'K' or 'k', 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
- 0๏ธโฃ #423: Add default column to settings table, thanks to @MartinDevillers
- โก๏ธ #452: Update 'United State' to 'United States', thanks to @mike1e
๐ฆ 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