# Check box doesn't show "tick" when selected = 1 in a script

**URL:** <https://forum.inductiveautomation.com/t/check-box-doesnt-show-tick-when-selected-1-in-a-script/109973>\
**Category:** General Discussion\
**Tags:** perspective\
**Created:** [August 20, 2025, 2:29am UTC](https://forum.inductiveautomation.com/t/check-box-doesnt-show-tick-when-selected-1-in-a-script/109973 "2025-08-20T02:29:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gareth.lovell](https://avatars.discourse-cdn.com/v4/letter/g/3d9bf3/32.png) [@gareth.lovell](https://forum.inductiveautomation.com/u/gareth.lovell)\
**Post date:** [August 20, 2025, 2:29am UTC](https://forum.inductiveautomation.com/t/check-box-doesnt-show-tick-when-selected-1-in-a-script/109973/1 "2025-08-20T02:29:35Z")

</div>

HI All,

I have a scenario I can’t seem to solve, I have a series of check boxes that can be selected in a random pattern. I have a button that “deselects” them all and a button that “selects” them all.

The check marks disappear when deselected, but I can’t seem to get the check mark to appear when “select all” button is clicked.

I set the selected value to “1”. is there another step I need to do?

Regards,

Gareth

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [August 20, 2025, 4:07am UTC](https://forum.inductiveautomation.com/t/check-box-doesnt-show-tick-when-selected-1-in-a-script/109973/2 "2025-08-20T04:07:49Z")

</div>

Try using True and False instead.

If that doesn't work then please post your code for both buttons. See [Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831).

---

<div class="post-metadata">

**Author:** ![rpulliam](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rpulliam/32/76557_2.png) [@rpulliam](https://forum.inductiveautomation.com/u/rpulliam)\
**Post date:** [August 20, 2025, 2:52pm UTC](https://forum.inductiveautomation.com/t/check-box-doesnt-show-tick-when-selected-1-in-a-script/109973/3 "2025-08-20T14:52:06Z")

</div>

> [@gareth.lovell](#):
>
> I set the selected value to “1”.

Just tested this. Set it to True instead of 1.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 20, 2025, 3:41pm UTC](https://forum.inductiveautomation.com/t/check-box-doesnt-show-tick-when-selected-1-in-a-script/109973/4 "2025-08-20T15:41:02Z")

</div>

Perspective's backing property model is [JSON](https://en.wikipedia.org/wiki/JSON), which has numbers, strings, and true booleans. `1`\[1\] is not the same as `true`\[2\] is not the same as `"true`"\[3\] is not the same as `"1"`\[4\].

* * *

1. a number 

2. a boolean 

3. a string containing four letters `t, r, u, e` 

4. a string containing the numeral `1`

---

<div class="post-metadata">

**Author:** ![gareth.lovell](https://avatars.discourse-cdn.com/v4/letter/g/3d9bf3/32.png) [@gareth.lovell](https://forum.inductiveautomation.com/u/gareth.lovell)\
**Post date:** [August 21, 2025, 12:16am UTC](https://forum.inductiveautomation.com/t/check-box-doesnt-show-tick-when-selected-1-in-a-script/109973/5 "2025-08-21T00:16:16Z")

</div>

thank you for this, True with the captial T is the keyword I was looking for. works now, much appreciated!

Regards,

Gareth

---

<div class="post-metadata">

**Author:** ![gareth.lovell](https://avatars.discourse-cdn.com/v4/letter/g/3d9bf3/32.png) [@gareth.lovell](https://forum.inductiveautomation.com/u/gareth.lovell)\
**Post date:** [August 21, 2025, 12:21am UTC](https://forum.inductiveautomation.com/t/check-box-doesnt-show-tick-when-selected-1-in-a-script/109973/6 "2025-08-21T00:21:53Z")

</div>

Thanks Paul, I appreciate this, I was getting a bit confused, I’ve used C and C# and a few other languages where 1 and 0 and true and false are interchangeable and the keyword is lowercase. I am new to JSON and Python, some of it is familiar and some not so much. This forum is a great tool and people are very generous with their knowledge.

Regards,

Gareth

---

<div class="post-metadata">

**Author:** ![gareth.lovell](https://avatars.discourse-cdn.com/v4/letter/g/3d9bf3/32.png) [@gareth.lovell](https://forum.inductiveautomation.com/u/gareth.lovell)\
**Post date:** [August 21, 2025, 12:25am UTC](https://forum.inductiveautomation.com/t/check-box-doesnt-show-tick-when-selected-1-in-a-script/109973/7 "2025-08-21T00:25:38Z")

</div>

thank you, this is exactly what I needed. regards, Gareth
