# How can I save value of checkbox ?

**URL:** <https://forums.unrealengine.com/t/how-can-i-save-value-of-checkbox/376035>\
**Category:** Editor Scripting\
**Tags:** savegame, load, checkbox, unreal-engine, question, Blueprint\
**Created:** [November 11, 2016, 12:18pm UTC](https://forums.unrealengine.com/t/how-can-i-save-value-of-checkbox/376035 "2016-11-11T12:18:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_22d67592](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_22d67592](https://forums.unrealengine.com/u/anonymous_user_22d67592)\
**Post date:** [November 11, 2016, 12:18pm UTC](https://forums.unrealengine.com/t/how-can-i-save-value-of-checkbox/376035/1 "2016-11-11T12:18:18Z")

</div>

I want to save and load value of checkbox. What should I do ? I need help.  
Whenever I restart game Checkbox value become default.

---

<div class="post-metadata">

**Author:** ![SHOBBIT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SHOBBIT](https://forums.unrealengine.com/u/SHOBBIT)\
**Post date:** [November 11, 2016, 12:45pm UTC](https://forums.unrealengine.com/t/how-can-i-save-value-of-checkbox/376035/2 "2016-11-11T12:45:29Z")

</div>

A checkbox has checked state and those state value can be stored to boolean. And booleans can be easily saved.

What you want to do is make a boolean say in your player class, and go to your checkbox and when its state is “checked” you will set the boolean to true and save that boolean and vice-versa. And also, you are going to bind your checkbox value with that boolean value, so that it shows the last saved state. Like this -

![114554-checkbox.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/5/e/95ee59ed328b9bd8b4737b4421d71e1a88f623d1.png)

---

<div class="post-metadata">

**Author:** ![baronharkonnen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@baronharkonnen](https://forums.unrealengine.com/u/baronharkonnen)\
**Post date:** [November 26, 2018, 8:14pm UTC](https://forums.unrealengine.com/t/how-can-i-save-value-of-checkbox/376035/3 "2018-11-26T20:14:31Z")

</div>

I’m trying to save my checkbox value (its for a light switch) and I don’t know how. Could you explain it more detailed? Thank you so much.
