Getting Started
Events

siret validator

Validate a Siret number

Options

Using with form field
The HTML attributes are used to set the validator options via the Declarative plugin
Name HTML attribute Type Description
message data-fv-siret___message String The error message
Using with ES6 module
            
// You might need to change the importing path
import siret from 'formvalidation/dist/es6/validators/siret' ;
const result = siret ( ) . validate ( {
value : ... ,
options : {
message : ... ,
} ,
} ) ;
/*
result is an object of
{
valid: true or false,
message: The error message
}
*/

See also