cs-icon.svg

Minimum and Maximum Limits

The Minimum and Maximum Limits properties let you define the acceptable range for the number of instances a user can add when a field is marked as Multiple. These settings help enforce structured data entry by ensuring users provide the expected number of values.

Note: These limits apply only when the Multiple option is enabled for a field. They are different from character or value limits set for single-instance fields.

You can configure minimum and maximum limits for fields that support multiple instances, including:

  • Group: Control how many instances of the group users can add.
  • Global Fields: If the Global field is set as multiple, define how many instances it can have.
  • Reference: Limit how many entries can be referenced.
  • Modular Blocks:
    • Parent level: Define the total number of blocks.
    • Block-level: Set limits for how many times a specific block type can be added.

The system validates these limits when users add content. If the number of instances exceeds the maximum or falls below the minimum, a validation message appears, and saving is blocked until the issue is resolved.

To set minimum and maximum limits, log in to your Contentstack account, and perform the following steps:

  1. Navigate to your stack and open the content type where you want to set the limits.
  2. Click the field you want to configure. The Edit Properties panel appears on the right.
  3. In the Advanced tab, enable the Multiple toggle. The Set Minimum Limit and Set Maximum Limit fields will appear.
  4. Under Set Minimum Limit, enter the minimum number of instances a user must add.
  5. Under Set Maximum Limit, enter the maximum number of instances a user can add.
  6. Since Modular Blocks are multiple by default, you can configure limits directly without enabling a Multiple option:
    1. Parent level limits: Set the total minimum and maximum number of blocks across all types.
    2. Block-level limits: Click into a specific block type and define individual min/max limits for that block.
  7. Click Save or Save and Close to update the content type.
Setting Minimum and Maximum Limits.gif

Minimum and maximum limits for Multiple fields help guide users and ensure consistent, high-quality content input. With clear limits and in-editor validation, you can streamline content entry while maintaining structure.

Was this article helpful?
^