stringCase validator

Check if a string is a lower or upper case one


Using with form field

The HTML attributes are used to set the validator options via the Declarative plugin

Name HTML attribute Type Description
case data-fv-string-case___case String Can be lower (the default value) or upper
message data-fv-string-case___message String The error message

Using with ES6 module

Basic Example

The following form asks user to enter a credit card holder in uppercase:

ES6 Module Example

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