Skip to main content

Set a character count on a field

Log in to add to favourites

The number of characters validation rule checks that the number of characters in a text field meets a minimum or maximum value or is between a range of values.

Appearance

An example of a text field with a character count range applied.
An example of a text field with a character count range applied.

How to set the validation

With a content type open for editing:

  1. Select the field you want to set a character count rule for and pick the Validation tab from the Field Settings panel.
  2. Choose one of the following options from the Number of characters dropdown:

Between allows you to set the minimum and maximum values for an expected character range.

Minimum of allows you to set an expected minimum value that needs to be met.

Maximum of allows you to set the maximum number of characters that can be entered.

  1. An alternative validation message can be added by entering it in the Validation message text box. This will be displayed if the field fails validation when published.

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request