grid validator

Validate a GRId (Global Release Identifier)

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-grid___message String The error message

Using with ES6 module

Basic Example

You can click on sample to see if it's a valid or invalid GRId.

Sample Is valid?
A12425GABC1234002M
A1-2425G-ABC1234002-M
A1 2425G ABC1234002 M
Grid:A1-2425G-ABC1234002-M
A1-2425G-ABC1234002-Q

ES6 Module Example

The following snippet shows how to use the grid validator with ES6 module:

Related validators

The following validators might be useful to you.