# Pass parameter to form to deselect checkbox

**URL:** <https://community.gravityforms.com/t/pass-parameter-to-form-to-deselect-checkbox/15768>\
**Category:** Get Help\
**Tags:** checkbox, jquery, dynamic-population\
**Created:** [August 24, 2023, 7:01pm UTC](https://community.gravityforms.com/t/pass-parameter-to-form-to-deselect-checkbox/15768 "2023-08-24T19:01:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Baiutlmaal](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/baiutlmaal/32/2224_2.png) [@Baiutlmaal](https://community.gravityforms.com/u/Baiutlmaal)\
**Post date:** [August 24, 2023, 7:01pm UTC](https://community.gravityforms.com/t/pass-parameter-to-form-to-deselect-checkbox/15768/1 "2023-08-24T19:01:08Z")

</div>

We have multiple options (checkbox) on our donation form. We have one pre-selected to help guide donors, but when we create a donation link for another donation option (checkbox in the same set), the pre-selected is also active.

Is there a way to pass a value via the URL to deselect the checkbox for that field?

---

<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:** [August 25, 2023, 6:52pm UTC](https://community.gravityforms.com/t/pass-parameter-to-form-to-deselect-checkbox/15768/2 "2023-08-25T18:52:07Z")

</div>

As far as I know, you can’t uncheck a checkbox with a query string parameter. You could check for the existence of something in the query string and then use jQuery to uncheck the option. The jQuery approaches discussed here can be used to uncheck a checkbox with jQuery:

> <https://stackoverflow.com/questions/13557623/remove-attribute-checked-of-checkbox>

You would need to know “when” to uncheck it.

---

<div class="post-metadata">

**Author:** ![Baiutlmaal](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/baiutlmaal/32/2224_2.png) [@Baiutlmaal](https://community.gravityforms.com/u/Baiutlmaal)\
**Post date:** [September 2, 2023, 12:21am UTC](https://community.gravityforms.com/t/pass-parameter-to-form-to-deselect-checkbox/15768/3 "2023-09-02T00:21:56Z")

</div>

Thanks, I’ll check it out.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [October 2, 2023, 12:22am UTC](https://community.gravityforms.com/t/pass-parameter-to-form-to-deselect-checkbox/15768/4 "2023-10-02T00:22:52Z")

</div>

Closed on October 2, 2023, 12:22am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
