News

The latest news about BootstrapValidator

BootstrapValidator v0.5.1 Released

New features

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
  • #609: Add content-type header for demo/remote.php, thanks to @etorres
  • #661: Add headers option to the remote validator, thanks to @ryan2049
  • #664: Fix the feedback icon position for Bootstrap 3.2
  • #683: Force the format option to be YYYY-MM-DD when using <input type="date" />
  • #698: Ignore type checking if the file type is empty

Bug fixes

  • #284, #294, #441, #516: The HTML 5 <input type="number" /> input allows to input non-digits characters
  • #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
  • #588: Don't use min, max attributes (greaterThan, lessThan validators) for <input type="date" />
  • #665: The submitButtons option doesn't work correctly
  • #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

Contributors

Thank to the contributor:

Download

Upgrading to v0.5.0

From v0.5.0, we remove the submitHandler option. In v0.5.0, use the success.form.bv event instead.

In v0.4.5 and earlier versions:

$(form).bootstrapValidator({
    submitHandler: function(form, validator, submitButton) {
        ...
    }
});

In v0.5.0:

$(form)
    .bootstrapValidator({
        // Removing submitHandler option
    })
    .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 ...
    });

Download

BootstrapValidator v0.5.0 Released

New features

Error message

Events

Support dynamic option

Support dynamic fields

New options

New APIs

Misc

Changes

  • $.fn.bootstrapValidator.helpers renames mod_11_10 to mod11And10, mod_37_36 to mod37And36
  • 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

Language Packages

Document

Upgrading to v0.5.0

See upgrading to v0.5.0 guide.

Contributors

Thank to the contributor:

Download

BootstrapValidator v0.4.5 Released

New features

Improvements

  • The zipCode validator adds support for Italian, Dutch postcodes
  • Change default submitButtons to [type="submit"] to support input type="submit"
  • #245: The cvv validator should support spaces in credit card, thanks to @evilchili

Bug fixes

  • 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
  • #226: Fix the conflict issue with MooTools
  • #238: The submit buttons are not sent
  • #253: The iban validator does not work on IE8
  • #257: Plugin method invocation don't work

Contributors

Thank to the contributor:

Download

BootstrapValidator v0.4.4 Released

New features

Improvements

Bug fixes

  • #231: Wrong prefix of Laser credit card number

Download

BootstrapValidator v0.4.3 Released

New features

Improvements

Bug fixes

Document

Contributors

Thank to the contributors:

Download

BootstrapValidator v0.4.2 Released

New features

Improvements

Bug fixes

  • #178: Do not validate fields that enabled is set to false, thanks to @henningda

Document

  • #169: Better to say: {validatorname} and {validatoroption} must be lowercase, thanks to @tomByrer

Contributors

Thank to the contributors:

Download

BootstrapValidator v0.4.1 Released

From this version, the plugin is available on jQuery plugins site.

Improvements

Bug fixes

Contributors

Thank to the contributors:

Download

BootstrapValidator v0.4.0 Released

New features

HTML 5 attribute Equivalent validator Equivalent HTML attribute
min="..." greaterThan validator
data-bv-greaterthan="true"
data-bv-greaterthan-value="..."
max="..." lessThan validator
data-bv-lessthan="true"
data-bv-lessthan-value="..."
maxlength="..." stringLength validator
data-bv-stringlength="true"
data-bv-stringlength-max="..."
pattern="..." regexp validator
data-bv-regexp="true"
data-bv-regexp-regexp="..."
required notEmpty validator data-bv-notempty="true"
type="color" hexColor validator data-bv-hexcolor="true"
type="email" emailAddress validator data-bv-emailaddress="true"
type="range"
min="..."
max="..."
between validator
data-bv-between="true"
data-bv-between-min="..."
data-bv-between-max="..."
type="url" uri validator data-bv-uri="true"

Changes

Improvements

Bug fixes

  • #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

Contributors

Thank to the contributors:

Download

BootstrapValidator v0.3.3 Released

Improvements

  • #50: Don't validate disabled element
  • #120: Handle case where a field is removed after the bootstrap validation, thanks to @patmoore

Bug fixes

Contributors

Thank to the contributor:

Download

BootstrapValidator v0.3.2 Released

New features

Improvements

Contributors

Thank to the contributor:

Download

BootstrapValidator v0.3.1 Released

New features

Changes

  • Remove the columns option. Now the plugin works normally no matter how many columns the form uses

Improvements

Bug fixes

Contributors

Thank to the contributors:

Download

BootstrapValidator v0.3.0 Released

New features

Improvements

Bug fixes

Contributors

Thank to the contributors:

Download

BootstrapValidator v0.2.2 Released

Improvements

  • #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

Bug fixes

  • #34: Avoid from calling form submit recursively
  • #40: Fix the issue when the form label doesn't have class

Download

BootstrapValidator v0.2.1 Released

Improvements

  • #29: Upgrade Bootstrap to v3.0.2
  • #30: Hide the error block containers before validating

Download

BootstrapValidator v0.2.0 Released

New features

Improvements

  • #22: Support form that labels are placed in extra small (col-xs-), small (col-sm-), medium (col-md-) elements

Bug fixes

Download

BootstrapValidator v0.1.1 Released

New features

Improvements

  • #16: Added disabling client side validation in HTML 5
  • #17: Added support for default Bootstrap form without labels
  • #19: Added support for select box validator

Download