---
title: "JMWE Cloud: Checkbox Validator"
canonical: "https://support.appfire.com/space/SUPPORT/1863516230/JMWE%20Cloud%3A%20Checkbox%20Validator"
format: markdown
---
## Description 

This KB explains how to create a validator for the checkbox field that requires the user to select **Yes** or **No** for each option.

```
Option1 (Yes)
Option1 (No)
Option2 (Yes)
Option2 (No)
Option3 (Yes)
Option3 (No)
Option4 (Yes)
Option4 (No)
Option5 (Yes)
Option5 (No)
Option6 (Yes)
Option6 (No)
Option7 (Yes)
Option7 (No)
Option8 (Yes)
Option8 (No)
```

Here is an example to illustrate the checkbox field options

![image-20260511-042647.png](media://5ce10b23-0aa4-49e5-9fc8-70995cd5fddf)

The goal here is to ensure the user selects either (Yes) or (No) for each set of options.

![image](media://6ba8fa66-41f3-4648-9617-3e2b9df7fd0b)

## \uD83D\uDCD8 Instructions



1. Add [https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/466226183](https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/466226183)
2. Use the following Jira Expression

```
let checkBox = issue.customfield_XXXXX;
(!!checkBox && checkBox.length == 8) &&
(
(checkBox.some(it => (it.value == "Option1 (Yes)") || (it.value == "Option1 (No)") )) &&
(checkBox.some(it => (it.value == "Option2 (Yes)") || (it.value == "Option2 (No)") )) &&
(checkBox.some(it => (it.value == "Option3 (Yes)") || (it.value == "Option3 (No)") )) &&
(checkBox.some(it => (it.value == "Option4 (Yes)") || (it.value == "Option4 (No)") )) &&
(checkBox.some(it => (it.value == "Option5 (Yes)") || (it.value == "Option5 (No)") )) &&
(checkBox.some(it => (it.value == "Option6 (Yes)") || (it.value == "Option6 (No)") )) &&
(checkBox.some(it => (it.value == "Option7 (Yes)") || (it.value == "Option7 (No)") )) &&
(checkBox.some(it => (it.value == "Option8 (Yes)") || (it.value == "Option8 (No)") )) &&
)  
```

> ℹ️ <u>**Explanation**</u>
> ℹ️ 
> ℹ️ - Replace `XXXXX`with the respective ID of the checkbox custom field.
> ℹ️ - Line #2 checks the checkbox field, which is not empty and has a length of 8 total options.
> ℹ️ - Lines #4 - #11 check the value selected for each option.