Form Field (Boolean type) visibility conditional on its own value
Hi,
We display explicit opt-in as a checkbox on almost all our forms (post-GDPR). It is a boolean field, so when someone hits submit on the form without checking the box, they overwrite existing value (which could be TRUE) to FALSE. This sometimes marks already opted-in people to FALSE. And I want to be able to switch visibility of this field based on it's current value - If it's true do not display the field to user.
There are a lot of discussions on it and I believe there's a JS way to tackle this. Anyone has been successful?
I will appreciate any feedback here!
Thanks,
Sonali