stringCase validator
Check if a string is a lower or upper case one
← Validators
Options
Option | HTML attribute | Type | Description |
case | data-fv-stringcase-case | String | Can be lower default or upper |
message | data-fv-stringcase-message | String | The error message |
When setting options via HTML attributes, remember to enable the validator by setting data-fv-stringcase="true".
Example
The following form asks user to enter a credit card holder in uppercase: