I have a checkbox that triggers a javascript function which shows/hides another component.
The problem is if I hit submit, but there is a required field missing the submit rerenders the page but doesnt retrigger the javascipt shows/hides. So some of the checkboxes that would show a different component will still be checked but the hidden component will still be hidden.
Is there a way to avoid re-rendering on submit, without using immediate=true because I still need validation?