Skip to content

Releases: Bien-Glitch/fusion.jquery.form.validator

Update

08 Sep 13:42
Compare
Choose a tag to compare
Update Pre-release
Pre-release
  • Code cleanup for better performance.
  • Added new function for form error check - hasErrors()
  • Added Error count per form:
    • Form can now be checked if error exists and form submission prevented using the hasErrors() function.

Bug fixes and Update

08 Sep 13:32
Compare
Choose a tag to compare

Bug fixes:

  • Validator can now be initialised on different instances.
  • Configuration can now be set separately for each instance.

Update:

  • Deprecated 'form.validation.js'.
  • Refactored to ES6 format for better performance.

Refactored previous code, files, and folder structure

01 Sep 09:53
Compare
Choose a tag to compare

Refactored previous code:

  • From 'form.validation.js' to 'fusion.form.validator.js'.
  • Form field validation data key
    changed from data-is-validated to data-fb-validate.

New features:

  • You can now check current version of validator (Log it into browser console);
  • Validator can now be instantiated uniquely or globally for all forms;
  • Optional configurations for validator added.
  • Added Email and Phone number.
  • Validation (Can be configured).

Update and bug fixes

29 Aug 19:52
Compare
Choose a tag to compare
  • Added clear validation function.
  • Corrected bug when displaying validation for select elements.
  • Made improvements.

Initial release

29 Aug 11:49
964f3fe
Compare
Choose a tag to compare
  • Validation for required empty form fields.
  • Show errors for inputs with minlength and maxlength attributes.
  • Password field validation for confirm password:
    (N.B password field id must be "password" and password confirm field must be "password_confirmation")
    i.e. <input type="password" id="password"> and <input type="password" id="password_confirmation">
  • Option for floating label.
  • 'optional' text for optional fields when using floating label.