# Checkboxes (Min/Max)

**Attribute:** <mark style="color:red;">`superform-checkbox-min = number`</mark>, <mark style="color:red;">`superform-checkbox-max = number`</mark>

**Apply to:** `div block` or `link block` that contains the checkboxes.

Checks the minimum and/or maximum number of checkboxes inside a specified block.

<figure><img src="https://1615520621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhC4q4SkuRcLPZQrmF5BR%2Fuploads%2F9RoFdIwV988UqkGs6AUC%2Fimage.png?alt=media&#x26;token=a5651fa1-2d6f-4d41-b2af-ef978840c3b3" alt=""><figcaption><p>This block requires minimum 1 and maximum 3 checkboxes to be checked.</p></figcaption></figure>

<figure><img src="https://1615520621-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhC4q4SkuRcLPZQrmF5BR%2Fuploads%2FsKAU8gstDARq1GW40rwv%2Fimage.png?alt=media&#x26;token=7aa85c2d-8425-4802-b1f8-30ebe8e0b19f" alt=""><figcaption><p>Corresponding error for identifier "checkbox"</p></figcaption></figure>

{% hint style="info" %}
You can have multiple blocks of checkboxes inside a step.
{% endhint %}

{% hint style="warning" %}
**Multiple blocks need different identifiers (names)**, this way Superform can distinguish between each block of checkboxes and also provide the ability for different error messages.
{% endhint %}

## Related Links

{% content-ref url="validate-and-error-must-read" %}
[validate-and-error-must-read](https://deltaclan.gitbook.io/superform/superform-v0/validation-attributes/validate-and-error-must-read)
{% endcontent-ref %}
