# save/load multiple checkbox state

**URL:** <https://forums.unrealengine.com/t/save-load-multiple-checkbox-state/441744>\
**Category:** Editor Scripting\
**Tags:** savegame, hud-blueprint, load-game, unreal-engine, UE4, question, Blueprint\
**Created:** [January 21, 2019, 9:55am UTC](https://forums.unrealengine.com/t/save-load-multiple-checkbox-state/441744 "2019-01-21T09:55:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitron64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nitron64](https://forums.unrealengine.com/u/nitron64)\
**Post date:** [January 21, 2019, 9:55am UTC](https://forums.unrealengine.com/t/save-load-multiple-checkbox-state/441744/1 "2019-01-21T09:55:34Z")

</div>

The checkbox enables/disables buttons. There are over 100 checkbox in game which do the same thing for there individual linked buttons.

[![Sidebar-Widget](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/1/8/c180510fe33dd3a53206bde2af427d177f336029.jpeg)](https://ibb.co/VVrJ9Fr)  
[![Widget-Events](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/b/6/2b621b29e56568689394d46dc9b38d5aec86d2fb.jpeg)](https://ibb.co/RY17Hny)]

Creating variables for each checkbox will be time consuming and inefficient. I created a Struct for it, but don’t know where to go from here.

Any help is appreciated.

Note: I can’t upload image for some reason. Is this a bug or something?

---

<div class="post-metadata">

**Author:** ![SupDeity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupDeity](https://forums.unrealengine.com/u/SupDeity)\
**Post date:** [January 21, 2019, 10:12am UTC](https://forums.unrealengine.com/t/save-load-multiple-checkbox-state/441744/2 "2019-01-21T10:12:28Z")

</div>

i havent tried this but this may work. Make a function which takes in the button reference and then save the reference to map with the state and save the map. and for retrieving the state make a function that takes the button reference and then just get the state.

---

<div class="post-metadata">

**Author:** ![nitron64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nitron64](https://forums.unrealengine.com/u/nitron64)\
**Post date:** [January 21, 2019, 10:49am UTC](https://forums.unrealengine.com/t/save-load-multiple-checkbox-state/441744/3 "2019-01-21T10:49:00Z")

</div>

> i havent tried this but this may work.  
> Make a function which takes in the  
> button reference and then save the  
> reference to map with the state and  
> save the map. and for retrieving the  
> state make a function that takes the  
> button reference and then just get the  
> state.  
> I would have to reference all the button which count the same as the checkbox. Nonetheless, I will try this and get back.
