Start a conversation

Validate capital letters in a text field

It is possible to check if a text field contains only capital letters. This is done using  regular expression (/^[A-Z]+$/).  The following template will allow you to validate the capital letters:

if ((/^[A-Z]+$/).test('{text_field}')) { 
    "OK"
} else {
    "Please use capital letters"
}

Check this template in the calculation helper.

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Castor Support Team

  2. Posted