# Preload data checkbox

**URL:** <https://forum.bubble.io/t/preload-data-checkbox/290500>\
**Category:** Database\
**Created:** [October 28, 2023, 7:21pm UTC](https://forum.bubble.io/t/preload-data-checkbox/290500 "2023-10-28T19:21:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![goduurzaam](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@goduurzaam](https://forum.bubble.io/u/goduurzaam)\
**Post date:** [October 28, 2023, 7:21pm UTC](https://forum.bubble.io/t/preload-data-checkbox/290500/1 "2023-10-28T19:21:27Z")

</div>

Hello,

I want the data from the custom state be shown in my checkboxes in the repeating group.  
How can i do that? The state has values, but the checkboxes are not checked:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/3/0/301f840a9f901602ba58a67a72f908fdb707cbee.png)  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/4/1/4120c34015849d6dfa57a65dad5b7717a07647bb.png)

Thanks!

---

<div class="post-metadata">

**Author:** ![georgecollier](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/georgecollier/32/182327_2.png) [@georgecollier](https://forum.bubble.io/u/georgecollier)\
**Post date:** [October 28, 2023, 7:43pm UTC](https://forum.bubble.io/t/preload-data-checkbox/290500/2 "2023-10-28T19:43:07Z")

</div>

Well your expression is invalid, which is why it’s red. If you have a yes/no state, then Repeating Group’s X’s selected is yes will work.

---

<div class="post-metadata">

**Author:** ![goduurzaam](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@goduurzaam](https://forum.bubble.io/u/goduurzaam)\
**Post date:** [October 28, 2023, 7:51pm UTC](https://forum.bubble.io/t/preload-data-checkbox/290500/3 "2023-10-28T19:51:45Z")

</div>

Thanks for your reply, it’s not a yes or no state. The custom state is based on a optionset

---

<div class="post-metadata">

**Author:** ![georgecollier](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/georgecollier/32/182327_2.png) [@georgecollier](https://forum.bubble.io/u/georgecollier)\
**Post date:** [October 28, 2023, 7:52pm UTC](https://forum.bubble.io/t/preload-data-checkbox/290500/4 "2023-10-28T19:52:25Z")

</div>

Then Repeating Group’s X’s selected is Current cell’s Option should do the trick 🙂 (or if selected is a list, then Repeating Group’s X’s selected contains Current Cell’s Option is yes)

---

<div class="post-metadata">

**Author:** ![goduurzaam](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@goduurzaam](https://forum.bubble.io/u/goduurzaam)\
**Post date:** [October 28, 2023, 9:19pm UTC](https://forum.bubble.io/t/preload-data-checkbox/290500/5 "2023-10-28T21:19:50Z")

</div>

Thanks, it works;)
