# Checkboxes value/checked

**URL:** <https://forum.wixstudio.com/t/checkboxes-value-checked/10199>\
**Category:** Ask the community\
**Created:** [December 11, 2020, 5:23pm UTC](https://forum.wixstudio.com/t/checkboxes-value-checked/10199 "2020-12-11T17:23:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![giri-zano](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/giri-zano/32/80469_2.png) [@giri-zano](https://forum.wixstudio.com/u/giri-zano)\
**Post date:** [December 11, 2020, 5:23pm UTC](https://forum.wixstudio.com/t/checkboxes-value-checked/10199/1 "2020-12-11T17:23:05Z")

</div>

Does any of you demi-Gods have any idea why a checkbox has a “checked”-property and a “value”-property? And which real world scenario would differentiate between the two (e.g checked=true, value=false)? Never really used checkboxes before because they are dangerous (binding a tri-value db-element to a bi-value interface element).

---

<div class="post-metadata">

**Author:** ![doron-alkalay](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/doron-alkalay/32/2887_2.png) [@doron-alkalay](https://forum.wixstudio.com/u/doron-alkalay)\
**Post date:** [December 11, 2020, 6:05pm UTC](https://forum.wixstudio.com/t/checkboxes-value-checked/10199/2 "2020-12-11T18:05:18Z")

</div>

Hey hey hey Giri!

The value doesn’t necessarily have to be a boolean one.

Let’s say I want to make an order for dinner at my local favorite fast-food burger chain.  
This said chain gives me the option to track the number of calories in the food I’ve ordered.

When submitting an order I’ll check all the items on the menu that I want and they’ll send 'em according to the _ **checked** _ properties of the items but at the same time, they can sum the calories that are being assigned to the item’s value.

The **value** is ignored while submitting an entry via dataset to a collection.  
What’s being submitted as the element value in the collection is the checked property as a boolean type.

 ![](https://us1.discourse-cdn.com/wix/original/3X/4/0/40350c19c7e095abbe061a86d5e0ef6e45cd3e84.png)

Hope that helps.  
Doron.

---

<div class="post-metadata">

**Author:** ![giri-zano](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/giri-zano/32/80469_2.png) [@giri-zano](https://forum.wixstudio.com/u/giri-zano)\
**Post date:** [December 11, 2020, 6:56pm UTC](https://forum.wixstudio.com/t/checkboxes-value-checked/10199/3 "2020-12-11T18:56:33Z")

</div>

OK, that makes kind of sense. Thanks, I overlooked the fact that the value-property is of type String. Just to be clear for others: if you do not use datasets, but wix-data to bind form elements to collection, you should use the “checked”-property, not the value-property. And yes, this makes binding harder: for most elements, you write the value-property, but for img’s the src-property and for checkboxes the checked-property.
