uuid validator

Validate an UUID


Using with form field
The HTML attributes are used to set the validator options via the Declarative plugin
NameHTML attributeTypeDescription
messagedata-fv-uuid___messageStringThe error message
versiondata-fv-uuid___versionStringThe UUID version. Can be 3, 4, 5 or all (the default version)
Using with ES6 module
// You might need to change the importing path
import uuid from 'formvalidation/dist/es6/validators/uuid';
const result = uuid().validate({
value: ...,
options: {
message: ...,
result is an object of
valid: true or false,
message: The error message

See also


  • Fixed an issue that the version option isn't passed to the placeholder message