# How to save Checkbox value in Form Settings Page \[RESOLVED\]

**URL:** <https://community.gravityforms.com/t/how-to-save-checkbox-value-in-form-settings-page-resolved/1837>\
**Category:** Get Help\
**Created:** [May 13, 2019, 1:48pm UTC](https://community.gravityforms.com/t/how-to-save-checkbox-value-in-form-settings-page-resolved/1837 "2019-05-13T13:48:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![user5aba2ea99bfbf5.2](https://avatars.discourse-cdn.com/v4/letter/u/7c8e57/32.png) [@user5aba2ea99bfbf5.2](https://community.gravityforms.com/u/user5aba2ea99bfbf5.2)\
**Post date:** [May 13, 2019, 1:48pm UTC](https://community.gravityforms.com/t/how-to-save-checkbox-value-in-form-settings-page-resolved/1837/1 "2019-05-13T13:48:25Z")

</div>

Hello there!

I’ve added a settings page for all forms (not the general settings) according to [this page](https://docs.gravityforms.com/gform_form_settings_page_view/) and want to save a simple checkbox value in there and read this value in the `gform_after_submission` function.

I checked out some other plugins, however they do very complicated things and i wondered how I can easily achive that since I have not much experience about gforms.

Greetings & thanks in advance

---

<div class="post-metadata">

**Author:** ![JASCoder](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/jascoder/32/1147_2.png) [@JASCoder](https://community.gravityforms.com/u/JASCoder)\
**Post date:** [May 13, 2019, 7:05pm UTC](https://community.gravityforms.com/t/how-to-save-checkbox-value-in-form-settings-page-resolved/1837/2 "2019-05-13T19:05:38Z")

</div>

Hi Jose !

Just for some additional context, can you tell me what actions you are looking to perform after the submission event ? ( that is, is the value needed for rendering in a new page )

Are you planning to program some custom PHP code for other uses, or looking to avoid coding if possible ?

---

<div class="post-metadata">

**Author:** ![user5aba2ea99bfbf5.2](https://avatars.discourse-cdn.com/v4/letter/u/7c8e57/32.png) [@user5aba2ea99bfbf5.2](https://community.gravityforms.com/u/user5aba2ea99bfbf5.2)\
**Post date:** [May 14, 2019, 8:04am UTC](https://community.gravityforms.com/t/how-to-save-checkbox-value-in-form-settings-page-resolved/1837/3 "2019-05-14T08:04:26Z")

</div>

Hello @JASCoder!

No, the value is not needed in a new page, just in the `gform_after_submission` action to decide how the form gets treated.

I’m not planning to do more code, it should be as easy as possible with the least possible code.

---

<div class="post-metadata">

**Author:** ![JASCoder](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/jascoder/32/1147_2.png) [@JASCoder](https://community.gravityforms.com/u/JASCoder)\
**Post date:** [May 14, 2019, 6:18pm UTC](https://community.gravityforms.com/t/how-to-save-checkbox-value-in-form-settings-page-resolved/1837/4 "2019-05-14T18:18:31Z")

</div>

Hey again, Jose

In your registered gform\_after\_submission callback function you’ll get access to the entry values (and related form object) as they are the two provided args passed to your function.

If you dump all the contents of both into debug you can view all that and see where the item is stored in the entries arrays. (I’ve spent many hours of study of that, and it’s all quite deterministic)

But hard-coding your reference to the needed value could be difficult to maintain thru future changes to your form. I have tackled this issue directly myself, in developing a plugin that saves all flagged field data into either the user’s meta data table or their live \_SESSION array - so you can reference them all by name directly, which can be much more maintainable. If this route is more attractive to you, just message me directly for more info, as I am still seeking some beta testers 🙂

Cheers and good luck friend,  
-JAS

---

<div class="post-metadata">

**Author:** ![user5aba2ea99bfbf5.2](https://avatars.discourse-cdn.com/v4/letter/u/7c8e57/32.png) [@user5aba2ea99bfbf5.2](https://community.gravityforms.com/u/user5aba2ea99bfbf5.2)\
**Post date:** [May 29, 2019, 2:55pm UTC](https://community.gravityforms.com/t/how-to-save-checkbox-value-in-form-settings-page-resolved/1837/5 "2019-05-29T14:55:23Z")

</div>

Hello James,

Thank you, but actually i really need just one checkbox and for this purpose, referencing this by id would be okay… All i need is an example code how i can add a checkbox to the form settings, save it within the form settings and read it in the gform\_after\_submission callback function as easy as possible…

I wouldn’t want for this very basic feature to use a plugin… 🙂

Greetings!

---

<div class="post-metadata">

**Author:** ![JASCoder](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/jascoder/32/1147_2.png) [@JASCoder](https://community.gravityforms.com/u/JASCoder)\
**Post date:** [May 29, 2019, 4:30pm UTC](https://community.gravityforms.com/t/how-to-save-checkbox-value-in-form-settings-page-resolved/1837/6 "2019-05-29T16:30:37Z")

</div>

Hi again Jose !

When I added admin form settings support in my new plug-in, I studied the code for this plug-in:

> **[GitHub - 13pixlar/gravity-forms-sticky-form: Sticky Form is a Gravity Forms...](https://github.com/13pixlar/gravity-forms-sticky-form)**
>
> Sticky Form is a Gravity Forms Add-on that enables forms to be "sticky". A sticky form stays populated with the users submitted data. - GitHub - 13pixlar/gravity-forms-sticky-form: Sticky...

That should have all the working example code for what you are asking about.

Good luck friend !  
-JAS

---

<div class="post-metadata">

**Author:** ![user5aba2ea99bfbf5.2](https://avatars.discourse-cdn.com/v4/letter/u/7c8e57/32.png) [@user5aba2ea99bfbf5.2](https://community.gravityforms.com/u/user5aba2ea99bfbf5.2)\
**Post date:** [June 4, 2019, 8:17am UTC](https://community.gravityforms.com/t/how-to-save-checkbox-value-in-form-settings-page-resolved/1837/7 "2019-06-04T08:17:04Z")

</div>

Thanks, James!  
This actually helped me - Instead of adding a whole new page, i just added an input to the Form Options.

> **[gform\_form\_settings](https://docs.gravityforms.com/gform_form_settings/)**
>
> Add new or modify existing form settings that display on the Form Settings screen.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [June 4, 2019, 1:36pm UTC](https://community.gravityforms.com/t/how-to-save-checkbox-value-in-form-settings-page-resolved/1837/8 "2019-06-04T13:36:47Z")

</div>


