Skip to content

Latest commit

 

History

History
313 lines (267 loc) · 32.9 KB

CHANGELOG.md

File metadata and controls

313 lines (267 loc) · 32.9 KB

Change Log

v0.5.0 (not released yet)

  • #121: Add events for form validate successfully or not
  • #195: Add events for field validation
  • Add status.field.bv event which is triggered after updating the field status. It can be used to solve #300, #301
  • #164: Add container option for indicating the element showing all errors
  • #175: Showing errors in tooltip or popover
  • #125: Support dynamic fields
  • #130: Add addField() and removeField() methods for managing dynamic fields, thanks to @jcnmulio
  • #211, #235: Add new method getInvalidFields() that returns all invalid fields
  • #275: Add destroy() method
  • #316: Add isValidContainer() method
  • #297: Disable feedback icons for particular fields
  • #244: Only enable the submit buttons if all fields are valid, thanks to @smeagol74
  • #274: Fix feedback icons in input-group, thanks to @tiagofontella
  • #202, #206: Does NOT active the tab containing the first invalid field automatically. The success/error tabs will NOT add custom CSS classes as well. These features are demonstrated in an example of using events
  • #282: Use error message that is returned from callback, remote validators
  • #287: Only send the submit button which is clicked. It's an enhancement for #238
  • #288: Fix date validator issue on IE8
  • #292: Fix identical validator issue with not clearing has-error class, thanks to @alavers
  • #305, #306, #307: Fix inclusive option in the between, greaterThan and lessThan validators, thanks to @johanronn77
  • #310: The date validator still return valid if the value doesn't contain digits
  • #311: file validation extension is case sensitive
  • #312: Fix broacast typo in the uri validator, thanks to @mrpollo
  • #313: Fix the file validator issue on IE 8
  • #314: The creditCard validator doesn't work on IE 8
  • #315: The cvv validator doesn't work on IE 8
  • #259: Typo "Support almost Bootstrap forms"
  • #261: English fix to 'amazing contributors' section, thanks to @lloydde
  • #278: Update choice validator document, thanks to @MrC0mm0n
  • #303: Fix typo in remote validator document, thanks to @MartinDevillers

v0.4.5 (2014-05-15)

v0.4.4 (2014-05-05)

v0.4.3 (2014-04-26)

v0.4.2 (2014-04-19)

v0.4.1 (2014-04-12)

  • #144, #158: Fixed an issue that the custom submit handler is not fired from the second time
  • #106: Prevent the validate() method from submit the form automatically. So we can call validate() to validate the form
  • #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
  • #157: Added support for element outside of form using the selector option
  • #159, #163: User doesn't need to submit the form twice when remote validator complete, thanks to @jswale
  • #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"
    />
HTML 5 attribute Validator
min="..." greaterThan validator
max="..." lessThan validator
maxlength="..." stringLength validator
pattern="..." regexp validator
required notEmpty validator
type="color" hexColor validator
type="email" emailAddress validator
type="range" between validator
type="url" uri validator

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',            // Set for all fields
    fields: {
        firstName: {
            trigger: 'keyup',   // Custom for each field. Can be 'event1 event2 event3'
            validators: {
                ...
            }
        },
        lastName: {
            trigger: 'blur',
            validators: {
                ...
            }
        }
    }
});
<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>

v0.3.3 (2014-03-27)

v0.3.2 (2014-03-21)

v0.3.1 (2014-03-17)

v0.3.0 (2014-03-10)

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
  • #34: Avoid from calling form submit recursively
  • #40: Fix the issue when the form label doesn't have class

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
  • #17: Added support for default Bootstrap form without labels
  • #19: Added support for select box validator

v0.1.0 (2013-10-14)