Getting Started
Events

Bulma plugin

Integrate with the Bulma framework
The plugin supports Bulma v0.7.4.

Usage

The following piece of code is the starting point to validate the form made in Bulma:
            
< html >
< head >
< link rel = " stylesheet " href = " https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.4/css/bulma.min.css " />
< link rel = " stylesheet " href = " /vendors/formvalidation/dist/css/formValidation.min.css " />
head >
< body >
< form id = " demoForm " method = " POST " > ... form >
< script src = " https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.35.3/es6-shim.min.js " > script >
< script src = " /vendors/formvalidation/dist/js/FormValidation.min.js " > script >
< script src = " /vendors/formvalidation/dist/js/plugins/Bulma.min.js " > script >
< script >
document . addEventListener ( 'DOMContentLoaded' , function ( e ) {
FormValidation . formValidation (
document . getElementById ( 'demoForm' ) ,
{
fields : {
...
} ,
plugins : {
bulma : new FormValidation . plugins . Bulma ( ) ,
...
} ,
}
) ;
} ) ;
script >
body >
html >
The sample code above assumes that the FormValidation files are placed inside the vendors directory. You might need to change the path depending on where you place them on the server.
The next sections list out some examples of various forms made with Bulma.

Horizontal form

Horizontal form

Stacked form

Stacked form

Multiple fields on the same row

Multiple fields on the same row

Changelog

v1.0.0
  • First release