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() and removeField() 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 and error.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 new getSubmitButton() method to get the clicked submit button
    • ๐Ÿšš #109: Remove the setLiveMode() method
    • $.fn.bootstrapValidator.helpers 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) {
            // 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 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
    • #456: Adjust the feedback icon position for .input-group element
    • ๐Ÿ‘ #465: Support dynamic message

    ๐Ÿ› Bug Fixes

    Document

    ๐Ÿ“ฆ 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