# Checkbox Inputs

Adds checkboxes form fields. This Option is available only in PRO version of the plugin. It has several modes: _classic_ mode, _color_, _image_ and _text._

* Make default - a certain suboption will be pre selected on the product page when this setting is chosen;
* Exclude? - hides/excludes a certain suboption in this Option instance only
* Label - a visible nice name of the suboption;
* Value - the value for the form field (input type radio in this case); it is like a slug for options; it should be unique across suboptions of the option;
* Price/Rate - (optional) this is a numeric representation of the suboption that can be used in price/weight calculation formulas and/or non option variable formula;

**Price/rate** setting can hold the value which can be used in price calculation formulas. Adding any value to this setting ⚠️ _does not automatically mean that this value will be used in price calculation_. This value will be assigned to Option's variable and used in price calculation only if the variable itself is used in price calculation formula.

For instance, you have an option with a slug

```
{uni_cpo_lamination}
```

and suboptions like 'Matt' and 'Gloss' and you would like to add '0' to the price when 'Matt' is chosen or add '10' when 'Gloss' is chosen. Then set 0 and 100 as price/rate settings of the suboptions and then modify your price calculation formula to smth like this:

```
{uni_nov_cpo_base_price}+{uni_cpo_lamination}
```

💡 This is how it works: you must use a certain option's variable in your price calculation formula if you want this option to modify the product price!

**Making a certain suboption the default one** means that this suboption will be chosen automatically on product page/form load.

**Making certain suboptions excluded** means that they will not be shown in the Option for this specific instance of the Option. _For instance, you have "Buggi or Vuggi?" custom option in two products. It means that you re use the same option for two products and you have two instances of this option. Then you want to exclude (temporarily or permanently) one or more suboptions for the first product. So you **do not have to remove** these suboptions! Just mark them "excluded" and save (no need to save to DB in this case) the option settings and that's it - excluded suboptions will not be shown for the current option's instance in the current product._

🏆 **PRO FUNCTIONALITY**: In addition to the main variable that holds the value itself, this Option also has this special variable:

```
{option_slug_count}
```

It holds a number of checkboxes checked.

🏆 **PRO FUNCTIONALITY**: Starting from version 4.5, Checkboxes option has got Suboption Conditional Logic (same as for Select option). Its interface looks like this:

![](https://3552609976-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M50Y01TKemmHpSl6feB%2F-M50Y0ZIgvH_dYi7thL3%2F-M50Y38OW8rGTLTutUYH%2Fsuboptions-conditional-logic.png?generation=1587016413341780\&alt=media)

This feature adds a possibility to conditionally display/hide option's suboptions based on the choice in other options. You can find a nice [animated screenshot of this feature in this our blog post](https://moomoo.agency/uni-cpo-4-2-is-out/).
