programer.tips, another cool thing from @nghuuphuoc!

BootstrapValidator v0.5.2 Released

News

Improve it on Github

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

PREVIOUS NEXT