Hiding checkbox doesn't deactivate it

Hey guys,

  1. I created a form within a CMS template
  2. I made the checkbox to only show when the switch is on
  3. I need the checkbox to be automatically checked when it’s visible
  4. I found that even though it’s hidden, the checkbox is being submitted to the form as true, which I don’t want to happen when it’s not visible. Is there a way to have this deactivate when hidden?


You would need to use custom code to remove the element from the DOM.