- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Form Checkboxes and Radio inputs wont unset in Hubspot forms
May 1, 2019 4:34 PM - edited May 1, 2019 4:40 PM
Hello,
I am trying to create an Unselect All function for a hubspot form.
You can see the preview of the page here:
I have added a second form above the first form it is titled Arbitrary Radio Buttons and has 2 radio inputs. The form below also has radio inputs. The non hubspot form radio inputs work as expected but the form inputs wont release/reset the radio inputs.
This is the code that unsets the regular radio inputs.
$('.hs_unsubscribe_from_all input[type="checkbox"]').click( function() { if ($(this).prop("checked")) { $(':radio').each(function () { $(this).removeAttr('checked'); $(this).prop('checked', false); }); $('.hs-fieldtype-radio label, .hs-fieldtype-checkbox label').removeClass('active'); $('.hs-fieldtype-radio, .hs-fieldtype-checkbox label').find('ul.inputs-list').slideUp(); } });
I have been unable to tell what the difference between these two forms are other than one was created in hubspot and the other is just html.
Any help would be appreciated.
Senior Developer
6085 Marshalee Dr| Suite 100 | Elkridge, MD 21075
Contact Us

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content