# Disabling Multiple Form Fields When Checkbox is Checked

**URL:** <https://community.hubspot.com/t/disabling-multiple-form-fields-when-checkbox-is-checked/24129>\
**Category:** CMS Development\
**Tags:** forms\
**Created:** [August 12, 2020, 7:51pm UTC](https://community.hubspot.com/t/disabling-multiple-form-fields-when-checkbox-is-checked/24129 "2020-08-12T19:51:33Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![SB21](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sb21/32/87988_2.png) [@SB21](https://community.hubspot.com/u/SB21)\
**Post date:** [June 10, 2021, 1:32pm UTC](https://community.hubspot.com/t/disabling-multiple-form-fields-when-checkbox-is-checked/24129/9 "2021-06-10T13:32:35Z")

</div>

HI

I am new to hubspot and i have got a query in landing pages.

I have got 5 check boxes in a landing page. If i check the last checkbox all other opted must be unchecked and if any of the first 4 is checked the last one must be un checked.

EX: Like a Preference form. If thy click optout all their subscriptions must be unchecked and vice versa.

 ![SB21_0-1623331936844.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/9/59f2ba037805558e07bbe631062c427043cbdbd9.png)

---

_[View the full topic](https://community.hubspot.com/t/disabling-multiple-form-fields-when-checkbox-is-checked/24129)._
