| Name | HTML attribute | Type | Description |
|---|---|---|---|
message
|
data-fv-hex___message
|
String
|
The error message |
// You might need to change the importing path
import
hex
from
'formvalidation/dist/es6/validators/hex'
;
const
result
=
hex
(
)
.
validate
(
{
value
:
...
,
options
:
{
message
:
...
,
}
,
}
)
;
/*
result is an object of
{
valid: true or false,
message: The error message
}
*/