sedol validator
Validate a SEDOL (Stock Exchange Daily Official List)
Options
Using with form field
Name | HTML attribute | Type | Description |
---|
message | data-fv-sedol___message | String | The error message |
Using with ES6 module
import sedol from 'formvalidation/dist/es6/validators/sedol';
const result = sedol().validate({
value: ...,
options: {
message: ...,
},
});
Basic example
ES6 Module Example
The following snippet shows how to use the sedol validator with ES6 module:
import sedol from 'formvalidation/dist/es6/validators/sedol';
const res1 = sedol().validate({
value: '0263494',
options: {
message: 'The value is not valid SEDOL',
},
});
const res2 = sedol().validate({
value: 'B0WNLY8',
options: {
message: 'The value is not valid SEDOL',
},
});
See also