v0.5.3 is released on 2014.11.05!

News

The latest news about BootstrapValidator

Improve it on Github

BootstrapValidator v0.5.3 Released

New features

Improvements

Bug fixes

Document

Language packages

Contributors

Thanks to 40 contributors:

Download

BootstrapValidator v0.5.2 Released

New features

Changes

  • #753: Change the default type of remote validator to GET

Improvements

Bug fixes

  • #611, #703: Tabs get red even form is valid
  • #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
  • #746: The form is still submitted when clicking on submit button which is set onclick="return false;"
  • #758: Using notEmpty validator with type="number"
  • #759, #764: The tooltip/popover isn't shown if there is disabled validator. 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
  • #832: The form won't be validated if the submit button contains a HTML tag

Document

Language packages

Upgrade from v0.5.x to v0.5.2

If you don't use the remote validator, just download v0.5.2 package and override the CSS/JS bundle.

Otherwise, please indicate the type option when using remote validator:

$(form).bootstrapValidator({
    fields: {
        username: {
            message: 'The username is not valid',
            validators: {
                // The validator will create an Ajax request
                // sending { username: 'its value' } to the back-end
                remote: {
                    message: 'The username is not available',
                    url: '/path/to/backend/',
                    type: 'GET'     // or 'POST'
                }
            }
        }
    }
});

Contributors

Thanks to 30 contributors:

Download

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

Older Newer