Skip to main content

Cookie control banner

Necessary Cookies
These cookies are necessary for this website to function correctly. They are set when you perform certain actions on the site, such as creating an account, logging in, changing your privacy preferences or submitting a form. You can block these cookies in your browser, but this will stop parts of the site from working properly.
Functional Cookies
These cookies allow the website to provide extra functionality and more personalised experiences. They may be set by us or by third party providers whose services we have added to our pages. If you choose not to allow these cookies, these services may not work correctly.
Analytical Cookies
These cookies record anonymous data on how visitors use our website to help us monitor how well our website works. This data includes how many people have looked at specific pages, how long visitors stay on the site, and what devices they use. We use this data to identify changes that we could make to improve your experience and make our website more efficient.
Marketing Cookies
We set some cookies so you are shown more relevant marketing content. These include cookies from third-party advertising networks to show you different adverts on their services if you have previously visited our site. If you choose not to allow these cookies, you may experience less relevant advertising on other sites.
Browse Documentation

Limit a field to a specific number of items using item count

Created by Contensis product team, last modified by r.saunders on 26 Aug 2020

The item count validation rule checks that the number of items that are added to a field supporting multiple items meets a minimum or maximum value, or is between a range of expected values.

Use this validation method when you want to restrict how many images, assets or entries an author can select when creating an entry. Alternatively you can use this validation rule to determine how many fields can be added to a repeatable field.


A feature component containing a title, description, image and link
An example of a feature component with a maximum item count set.

Set the validation

With a content type open for editing:

  1. Select the field that has been set to allow multiple items, such as Image, Asset or Component, and pick the Validation tab from the Field Settings panel.
  2. Choose one of the following options from the Number of items dropdown:

Between allows you to set minimum and maximum values for an expected item count range.

e.g. Requires between 1 - 3 items

Minimum of allows you to set a minimum item count that needs to be met.

e.g. Requires a minimum of 2 items

Maximum of allows you to set the maximum number of items that can be added.

e.g. Requires a maximum of 200 characters

You can enter a custom validation message in the Validation Message text box. This will be displayed if the field fails validation when published.