BootstrapValidator v0.4.0 Released
New features
- #14, #57: Set validator option by using HTML 5 attributes
- Support HTML 5 input types:
HTML 5 attribute | Equivalent validator | Equivalent HTML attribute |
---|---|---|
min="..." |
greaterThan validator |
|
max="..." |
lessThan validator |
|
maxlength="..." |
stringLength validator |
|
pattern="..." |
regexp validator |
|
required |
notEmpty validator | data-bv-notempty="true" |
type="color" |
hexColor validator | data-bv-hexcolor="true" |
type="email" |
emailAddress validator | data-bv-emailaddress="true" |
|
between validator |
|
type="url" |
uri validator | data-bv-uri="true" |
- #74, #103, #122: Set the custom trigger event. It's possible to use
data-bv-trigger
attribute ortrigger
option. - #109: Add
setLiveMode()
method to turn on/off the live validating mode - #114: Add iban validator for validating IBAN (International Bank Account Number)
- #116: Add uuid validator, support UUID v3, v4, v5
- #128: Add numeric validator
- #135: Add integer validator
- #138: Add hex validator
- #139: Add stringCase validator to check a string is lower or upper case
Changes
disableSubmitButtons()
is now marked as a public API- The first parameter of
updateStatus()
method now accepts the field name only
Improvements
- #133: The regexp validator allows to pass a string
- #136: Support multiple elements with the same name
- #140: Do not validate hidden (
type="hidden"
) and invisible element, thanks to @easonhan007
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:
Comments
Don't submit the issue here
If you want to report a bug, please submit the issue on Github. For a general question or feedback, use the form below.