Change Log
v0.6.2 (not released yet)
New Features
- Add STATUS_IGNORED status. The field will be ignored for the current validation if the validator returns null/undefined
Improvements
44: date validator supports dot (.) separator for European countries
62: Allow to use callback for field's excluded option
Bug Fixes
47: Spanish VAT validator doesn't work with some examples
48: Override the options when adding field
50: The Brazilian Id (CPF) number must have 11 digits
- The updateMessage() method must return the plugin instance for chaining
- When calling resetField(true) and resetForm(true) methods, the field need be reset value before updating the status
Document
v0.6.1 (2015-02-24)
New Features
467: Add dataType
, crossDomain
, validKey
options for remote validator.
It's possible to use remote validator to connect to external validator API, such as MailGun (#1315)
Improvements
1327: remote validator fails if Ajax request fails
-
- Add plugin instance to the 3rd parameter of transformer callback
- Add Grunt task that runs the jasmine test suites
Bug Fixes
This version fixed the isValid()
method which should return null
when there is not validated or being validated field.
It also solves the issues where the submit button is disabled even when the form is valid.
962, #1318: remote validator and isValid()
combined do not work
-
-
-
-
-
Other issues are fixed in this version:
1107, #1279, #1280, #1419: Show the validating
icon when the field is being validated
-
1320: Fix Slovakia phone number validator
1343, #1369: Fix the issue where custom validator doesn't provide default message
1379: Don't continue if there is no validators attached to fields
-
1389: Fix isValidContainer()
and validateContainer()
methods to support fields with the same name
Document
Language Packages
1381: Update Slovak language package, thanks to @PatrikGallik
1400: Update Belgian Dutch language package, thanks to @jdt
1432: Fix some typos in the Hungarian translation, thanks to @blackfyre
v0.6.0 (2015-01-06)
New Features
708, #899: Add setLocale()
and getLocale()
methods to support multiple languages
718: Add validateContainer()
method
-
1131: Support add-on
-
1153: Add EIN validator, thanks to @joshuachestang
1165: Add BIC (ISO 9362) validator, thanks to @thomaslhotta
1185: Add composer.json
file, thanks to @rbnvrw
1189, #1194: Add err
, icon
, row
options
1204: Support Zurb Foundation framework
-
1208: Support Spanish CIF validator, thanks to @ethernet-zero
1210: Support UI Kit framework
1211: Support Semantic UI framework
1212: Support Pure framework
1227, #1229: Add India phone number validator, thanks to @waveking
1230, #1231: Add India postal code validator, thanks to @waveking
Changes
1167: Remove hexColor validator. Use color validator instead
1272: Change event error.x.x
to err.x.x
to avoid window.onerror
being invoked by jQuery
- Remove tab behavior from base class
Add-ons
1116: Showing only one message each time
1126: Required icon
1132: Google reCAPTCHA add-on
- multilingual add-on
Improvements
-
908, #1156: Add option to set optional protocol in uri validator, thanks to @krecik
914, #1035, #1163: Improve identical validator, thanks to @jazzzz
1037: Show the credit card icon based on its type
-
1137: Use jQuery
instead of window.jQuery
1154: Allow to reuse data which is returned by the validator
1177: Don't need to set the different validator for both fields
1186, #1188: Improve the CPF validator, thanks to @igorescobar
1197: Add sample data for CPF validator, thanks to @dgmike
1207: Improve Spanish phone validator, thanks to @ethernet-zero
1218: Improve Slovenian vat number validator, thanks to @Glavic
-
-
1239: Fix typo in UIKit class, thanks to @Arkni
1252: Validators return true for not supported countries
1255, #1258: Support to use a Date object as value for min
and max
options, thanks to @Arkni
1261: Improve cvv validator
1268: uri validator gets slower if more than 25 characters
- The
isValidContainer()
method should return null
if the container consists of at least one field which is not validated yet or being validated
Bug Fixes
1101: The cusip validator doesn't work
1102: Fix the date validator issue where accepts 2014-11-1 23:
as valid YYYY-MM-DD h:m
date
1105: The color validator doesn't provide html5Attributes
mapping
1125, #1136: Update Brazil ID validator to support working with Mask plugin, thanks to @jonasesteves
1243: Fix the icon without label class
-
1274: Fix validateContainer()
to use map value instead of key, thanks to @jasonblalock
1279, #1280: Show the validating
icon when the field is being validated, thanks to @tmaly1980
1292: Fix bug of US phone number validator
Document
-
-
-
-
-
-
-
1106: Add example to the phone validator
1122: Add third parameter to callback
method of callback validator, thanks to @Arkni
-
-
-
-
-
-
-
Language Packages
1150: Add Catalan language package, thanks to @ArnauAregall
1216, #1248: Add Slovak language package, thanks to @budik21
1217, #1247: Update Czech language package, thanks to @budik21
1225: Add Finnish language package, thanks to @traone
1246: Add Hindi language package, thanks to @gladiatorAsh
1321: Add Basque language package, thanks to @xabikip
v0.5.3 (2014-11-05)
New Features
807, #821: Add min
, max
options for the date validator, thanks to @Arkni
-
844, #874: The stringLength validator adds option to evaluate length in UTF-8 bytes, thanks to @thx2001r
937, #1001: Add minFiles
, maxFiles
, minTotalSize
, maxTotalSize
options for the file validator, thanks to @morrizon
960, #1052: Add trim
option for the stringLength validator
1008: Add France postal code validator, thanks to @jazzzz
1010: Add Ireland postal code validator, thanks to @zmira
-
1022: Add Portugal postal code validator, thanks to @zmira
1033, #1043, #1068: Add autoFocus
option
1072: Add Austria and Switzerland postal code validators, thanks to @thomaslhotta
Improvements
823: The hexColor validator only accepts 6 hex character values when using HTML 5 type='color'
attribute
864: Comma separator handling in greaterThan, lessThan validators, thanks to @mgibas
999, #1048: Replace ',' with '.' to validate decimal numbers correct, thanks to @johanronn77
-
1015: The remote validator allows to set data
options via HTML attributes, thanks to @jazzzz
1017: Enable validator when setting data-bv-validatorname="data-bv-validatorname"
, thanks to @jazzzz
1026: Requires jQuery 1.9.1 or higher
Bug Fixes
343, #481, #1045: Fix double submit with defered validators, thanks to @jazzzz
-
-
-
-
1055, #1063: The error.field.bv event isn't triggered if verbose is set to false, thanks to @shineability
-
Document
-
885: Add a notification about setting identical validator for both fields
-
-
938: Add time validator example
-
-
1009: Fix mixed data/delay in remote doc, thanks to @jazzzz
-
-
Language Packages
827: Update Dutch language package, thanks to @JvanderHeide
829: Update Swedish language package, thanks to @ulsa
834: Update Ukrainian and Russian language packages, thanks to @oleg-voloshyn
835: Update Belgium (French) language package, thanks to @neilime
836: Update French language package, thanks to @neilime
837: Update Bulgarian language package, thanks to @mraiur
846: Update simplified Chinese language package, thanks to @shamiao
849: Update Serbian language package, thanks to @markocrni
850, #851: Update Danish language package, thanks to @Djarnis
869: Update Polish language package, thanks to @grzesiek
870: Update Traditional Chinese language package, thanks to @tureki
871: Update Czech language package, thanks to @cuchac
872: Update Indonesian language package, thanks to @egig
879: Update Romanian language package, thanks to @filipac
880: Update Belgium (Dutch) language package, thanks to @dokterpasta
881: Update Italian language package, thanks to @maramazza
882: Update Spanish language package, thanks to @vadail
891: Update Portuguese (Brazil) language package, thanks to @dgmike
893: Fix country name of Dominican Republic, thanks to @sventech
900: Update Persian (Farsi) language package, thanks to @i0
903: Update Hungarian language package, thanks to @blackfyre
910: Update Greek language package, thanks to @pRieStaKos
913: Update Thai language package, thanks to @figgaro
915: Update Turkish language package, thanks to @CeRBeR666
961: Update Chilean Spanish language package, thanks to @marceloampuerop6
967: Add Hebrew language package, thanks to @yakidahan
974: Add Albanian language package, thanks to @desaretiuss
1025: Fix French emailAddress message, thanks to @jazzzz
1051: Add Portuguese language package, thanks to @rtbfreitas
v0.5.2 (2014-09-25)
New Features
480: Add verbose
option, thanks to @mbezhanov
542, #666: Add blank validator, thanks to @bermo
617: Add init
and destroy
methods to validator
724: Add Venezuelan VAT number (RIF) validator, thanks to @paquitodev
739: Add China phone number validator, thanks to @caijh
743: Add Venezuela phone number validator, thanks to @paquitodev
760: Add Romania phone number validator, thanks to @adrian-dks
761: Add Romania postal code validator, thanks to @adrian-dks
785: Add Denmark phone number validator, thanks to @emilchristensen
787: Add Thailand phone number and ID validator, thanks to @figgaro
793, #798: Add Chinese citizen ID validator, thanks to @shamiao
802: Add Russia phone number validator, thanks to @cylon-v. #816: Improved by @stepin
816: Add Russian postal code validator, thanks to @stepin
867: Add Czech and Slovakia phone number and postal code validators, thanks to @cuchac
Changes
753: Change the default type of remote validator to GET
Improvements
249, #574, #669: Add delay
option to the remote validator, thanks to @q-state
345, #454: The different validator allows more than a 2-way comparison, thanks to @AlaskanShade
557, #569: The container option can be defined by a callback, thanks to @mattrick
-
578, #813: The stringLength validator supports HTML 5 minlength
attribute, thanks to @emilchristensen
675: The emailAddress validator accepts multiple email addresses, thanks to @kenny-evitt
716, #765: Reuse data returned by callback, remote, custom validators
734: The uri validator adds support for custom protocol, thanks to @bcamarneiro
737: Support VAT number without prefixing by country code
-
783: Improve behaviour of the different validator
792: Add "BootstrapValidator's JavaScript requires jQuery" warning, thanks to @Arkni
803: Add minSize
option for the file validator, thanks to @Arkni
824: Add phone number validator test suite
Bug Fixes
-
612, #740, #741: Fix the emailAddress issue which email@server is not valid email address, thanks to @kromit
687, #711: Keep disabled validators VALID, thanks to @talberti
725: Fix the issue when adding field which does not exist but is already set in "fields" option
732: Fix the issue when removing the radio or checkbox field
-
758: Using notEmpty validator with type="number"
-
The tooltip/popover is shown automatically when the field gets the focus, thanks to @leedorian
797, #799: Can't validate ipv4 and ipv6 at the same time. Add ip validator test suite, thanks to @Arkni
816: Fix Russian VAT number validator, thanks to @stepin
-
Document
Language Packages
706: Japanese language package, thanks to @tsuyoshifujii
712: Swedish language package, thanks to @ulsa
727: Belgium (French) language package, thanks to @neilime
729: Persian (Farsi) language package, thanks to @i0
779: Romanian language package, thanks to @filipac
787: Thai language package, thanks to @figgaro
788: Fully re-translated Simplified Chinese language package, thanks to @shamiao
795: Re-translated traditional Chinese language package, thanks to @tureki
802: Russian language package, thanks to @cylon-v. #816: Improved by @stepin
806: Ukrainian language package, thanks to @oleg-voloshyn
840: Serbian language package, thanks to @markocrni
856: Norwegian language package, thanks to @trondulseth
868: Indonesian language package, thanks to @egig
v0.5.1 (2014-08-22)
New Features
218, #531: Add meid validator, thanks to @troymccabe
267, #532: Add imo validator, thanks to @troymccabe
-
536: Add Spanish phone number validator, thanks to @vadail
519: Add Iceland VAT number validator, thanks to @evilchili
620, #621: Add Pakistan phone number validator, thanks to @abuzer
630, #640: Add event name options to avoid window.onerror
being invoked by jQuery, thanks to @roryprimrose. Thanks to @stephengreentree for creating the test suite (#657)
637: Add South African VAT number validator, thanks to @evilchili
-
-
650: Add Brazilian VAT number validator, thanks to @fhferreira
Improvements
502: Allowing sites without TLD to pass URI validation, thanks to @troymccabe
549, #600: Change the CSS/JS path in demo/remote.html
and demo/message.html
, thanks to @leegtang, @Arkni
604: Fix the demo/date.html
and demo/tab.html
examples, thanks to @Arkni
-
-
664: Fix the feedback icon position for Bootstrap 3.2
-
698: Ignore type checking if the file type is empty
Bug Fixes
-
548: Fix the issue when using different validator to compare with not existing field
550, #551: Cannot validate against both ipv4 and ipv6 at the same time, thanks to @beeglebug
-
-
672: The zipCode validator throw an exception when passing not supported country code
681: Fix the date validator issue where one of date/month/year or hours/minutes/seconds is prefixed by zero
692: The remote validator can't set the type option via HTML attribute
700: The between, greaterThan, lessThan validators accept param which isn't number
Language Packages
400: Italian language package, thanks to @maramazza
503: French language package, thanks to @dlucazeau
505: Czech language package, thanks to @AdwinTrave
507: Polish language package, thanks to @grzesiek. #624: Typos fixed by @lukaszbanasiak
517: Belgium (Dutch) language package, thanks to @dokterpasta
527: Bulgarian language package, thanks to @mraiur
534: Turkish language package, thanks to @CeRBeR666
536: Spanish language package, thanks to @vadail
544: Greek language package, thanks to @pRieStaKos
545: Portuguese (Brazil) language package, thanks to @marcuscarvalho6
598: Danish language package, thanks to @Djarnis
674, #677: Dutch language package, thanks to @jvanderheide
679: Add Arabic language package, thanks to @Arkni
v0.5.0 (2014-07-14)
New Features
2, #387: Provide the default error messages
93, #385: Support translating error messages. Provide the Vietnamese language file
-
125: Support dynamic fields
130: Add addField()
and removeField()
methods for managing dynamic fields, thanks to @jcnmulio
164: Add container
option for indicating the element showing all errors
-
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
and error.validator.bv
events triggered after a validator completes
332: Add UK phone number support for the phone validator, thanks to @aca02djr
-
356: Add group
option
-
406: Add revalidateField(field)
method
433: Add resetField(field, resetValue)
method
434: Add updateMessage(field, validator, message)
method
Changes
-
109: Remove the setLiveMode()
method
FormValidator.Helper
renames mod_11_10
to mod11And10
, mod_37_36
to mod37And36
- Remove
submitHandler()
option. Use success.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) {
e.preventDefault();
var $form = $(e.target),
validator = $form.data('bootstrapValidator'),
submitButton = validator.getSubmitButton();
});
Improvements
-
262: Improve the updateStatus()
method. The plugin now doesn't show the errors, feedback icons of given field if there are uncompleted validators
-
-
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
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 or data-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
-
465: Support dynamic message
Bug Fixes
-
292: Fix identical validator issue with not clearing has-error
class, thanks to @alavers
-
310, #475: The date validator still return valid if the value doesn't contain digits
311: file validation extension is case sensitive
-
-
-
315: The cvv validator doesn't work on IE 8
-
358: The zipCode validator doesn't work for Canadian zip code
-
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
-
-
417: IPv6 validator doesn't work
425: Custom trigger event is ignored by field validators
-
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
-
261: English fix to 'amazing contributors' section, thanks to @lloydde
-
-
-
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
v0.4.5 (2014-05-15)
- Add
FormValidator.Helper.date
for validating a date, re-used in date, id, vat validators
233: Add threshold
option
-
-
-
-
-
-
- The zipCode validator adds support for Italian, Dutch postcodes
245: The cvv validator should support spaces in credit card, thanks to @evilchili
- Change default
submitButtons
to [type="submit"]
to support input type="submit"
-
-
253: The iban validator does not work on IE8
257: Plugin method invocation don't work
- Fix the issue that the hidden fields generated by other plugins might not be validated
- When parsing options from HTML attributes, don't add the field which hasn't validators. It improves fixes for #191, #223
v0.4.4 (2014-05-05)
- Add
FormValidator.Helper.mod_11_10
method that implements modulus 11, 10 (ISO 7064) algorithm. The helper is then reused in validating German and Croatian VAT numbers
- Add
FormValidator.Helper.mod_37_36
method that implements modulus 37, 36 (ISO 7064) algorithm, used in GRid validator
-
-
-
-
-
191, #223: Support using both the name
attribute and selector
option for field
206: Indicate success/error tab
220: Add UK postcode support for the zipCode validator
-
231: Wrong prefix of Laser credit card number
v0.4.3 (2014-04-26)
- Add
FormValidator.Helper.luhn
method that implements the Luhn algorithm
-
179: Add vat validator, support 32 countries
198, #199: Add Canadian Postal Code support for the zipCode validator, thanks to @Francismori7
201: The choice validator supports select
element
202: Activate tab containing the first invalid field
205: Plugin method invocation
207: IE8 error. The field is only validated when its value is changed. It also fixes #153, #193, #197
-
210: The isbn validator accepts letters and special characters
v0.4.2 (2014-04-19)
168: Add siren and siret validators, thanks to @jswale
-
-
171: The phone validator now supports +1 country code and area code for US phone number, thanks to @tomByrer
173: The remote validator allows to override name
option, thanks to @jswale
178: Do not validate fields that enabled
is set to false
, thanks to @henningda
-
169: Better to say: {validatorname}
and {validatoroption}
must be lowercase, thanks to @tomByrer
v0.4.1 (2014-04-12)
144, #158: Fixed an issue that the custom submit handler is not fired from the second time
-
131: Doesn't trigger validation on the first focus
145: The row state is now only marked as success if all fields on it are valid
-
-
162: Fix errors in IE 8, thanks to @adgrafik
166, #167: The phone validator now also checks the length of US phone number, thanks to @gercheq
v0.4.0 (2014-04-03)
Form attributes:
<form
data-bv-message="This value is not valid"
data-bv-feedbackicons-valid="glyphicon glyphicon-ok"
data-bv-feedbackicons-invalid="glyphicon glyphicon-remove"
data-bv-feedbackicons-validating="glyphicon glyphicon-refresh"
>
Field attributes:
<input type="text" class="form-control" name="username"
data-bv-message="The username is not valid"
data-bv-notempty data-bv-notempty-message="The username is required and cannot be empty"
data-bv-stringlength="true" data-bv-stringlength-min="6" data-bv-stringlength-max="30" data-bv-stringlength-message="The username must be more than 6 and less than 30 characters long"
data-bv-different="true" data-bv-different-field="password" data-bv-different-message="The username and password cannot be the same as each other"
data-bv-remote="true" data-bv-remote-url="remote.php" data-bv-remote-message="The username is not available"
/>
It's possible to use data-bv-trigger
attribute:
<form data-bv-trigger="keyup">
<input type="text" class="form-control" name="firstName" placeholder="First name"
data-bv-trigger="keyup" />
...
<input type="text" class="form-control" name="lastName" placeholder="First name"
data-bv-trigger="blur" />
</form>
or trigger
option:
$(form).bootstrapValidator({
trigger: 'blur',
fields: {
firstName: {
trigger: 'keyup',
validators: {
...
}
},
lastName: {
trigger: 'blur',
validators: {
...
}
}
}
});
136: Support multiple elements with the same name
<div class="form-group">
<input class="form-control" type="text" name="surveyAnswer[]" />
</div>
<div class="form-group">
<input class="form-control" type="text" name="surveyAnswer[]" />
</div>
<div class="form-group">
<input class="form-control" type="text" name="surveyAnswer[]" />
</div>
109: Add setLiveMode()
method to turn on/off the live validating mode
114: Add iban validator for validating IBAN (International Bank Account Number)
116: Add uuid validator, support UUID v3, v4, v5
-
-
-
139: Add stringCase validator to check a string is lower or upper case
-
133: The regexp validator allows to pass a string
140: Do not validate hidden (type="hidden"
) and invisible element, thanks to @easonhan007
disableSubmitButtons()
is now marked as a public API
- The first parameter of
updateStatus()
method now accepts the field name only
126: Submit button remains disabled after calling custom submitHandler
and the form is valid
132: The fields.[fieldName].message
option is not used when showing the error message
v0.3.3 (2014-03-27)
50: Don't validate disabled element
-
-
120: Handle case where a field is removed after the bootstrap validation, thanks to @patmoore
v0.3.2 (2014-03-21)
v0.3.1 (2014-03-17)
-
72, #79: Improve updateStatus()
method to make the plugin play well with another
-
90: Add bower.json
file, thanks to @ikanedo
-
- Remove the
columns
option. Now the plugin works normally no matter how many columns the form uses
-
-
-
v0.3.0 (2014-03-10)
44: Rewrite entirely using Deferred
-
-
-
-
-
-
-
-
70: Support custom grid columns
71: Show all errors
-
50: Don't validate disabled element
51: Submit after submit doesn't work
-
55: The plugin doesn't validate other fields if the remote validator returns true
-
59: Add example for Rail field convention, thanks to @narutosanjiv
60: Update the installation guide, thanks to @vaz
73: Describe which version should be included in the Usage section
v0.2.2 (2014-01-07)
15: Focus to the first invalid element
31: remote validator: Allow to set additional data to remote URL
32, #43, #47: Only validate not empty field
39: Validate existing fields only
-
-
v0.2.1 (2013-11-08)
29: Upgrade Bootstrap to v3.0.2
30: Hide the error block containers before validating
v0.2.0 (2013-10-21)
v0.1.1 (2013-10-17)
- Added
submitButtons
option
16: Added disabling client side validation in HTML 5
-
19: Added support for select box validator
v0.1.0 (2013-10-14)
- First release
- Provide various validators: