Version 0.8.0

Released 27 June 2016

New features

This version of FormValidation works with the latest versions of supported frameworks, including:

  • Foundation v6
  • Bootstrap v4 (alpha 2) by setting framework: 'bootstrap4'
  • PureCSS v0.6.0
  • Semantic UI v2.1.8
  • UIKit v2.26.3

Changes

If you want to try Bootstrap 4 alpha 2 or still want to use Foundation 5, you need to follow the Upgrading to v0.8.0 section below.

Improvements

  • The creditCard validator now supports more card types (Dankort, Elo, Forbrugsforeningen, Maestro International, Visa Electron)
  • The ip validator now supports CIDR notation
  • Return more information of the file validator result, so user can display associated message if the selected file doesn't match given extension, type or size
  • Pass validator along to the status.field.fv event

Bug fixes

  • Using formnovalidate attribute causes IE to send two postbacks to server
  • Form cannot submit with live mode disabled (live: 'disabled') and form has some radios/checkboxes
  • Fix an exception when calling destroy() if a field is replaced manually
  • The cvv validator doesn't work properly if we transform the credit card value
  • The phone validator should accept valid US phones such as 999 999 9999

Upgrading to v0.8.0

You need to perform the following changes if you want to try Bootstrap 4 (alpha) or still want to use Foundation 5:

Step 1: Including the correct files

This section is already mentioned in the Including library section:

Use with Bootstrap:



















        

Note

Don't confuse bootstrap(.min).js file provided by the Bootstrap framework with bootstrap4(.min).js provided by FormValidation which is placed inside the formvalidation/dist/js/framework directory. They are two different files and both of them need to be included as mentioned above.

Use with Foundation:




















Note

Don't confuse foundation(.min).js file provided by the Foundation framework with foundation5(.min).js provided by FormValidation which is placed inside the formvalidation/dist/js/framework directory. They are two different files and both of them need to be included as mentioned above

Step 2: Setting the framework option

You need to set the framework option as following:


// If your form uses Bootstrap 4 alpha
$(yourForm).formValidation({
    framework: 'bootstrap4',
    ...
});      

// If your form uses Foundation 5
$(yourForm).formValidation({
    framework: 'foundation5',
    ...
});