AnsweredAssumed Answered

Force opt-out checkbox via form submit on condition

Question asked by Loredana CHITUC on Jul 5, 2018
Latest reply on Jul 12, 2018 by Loredana CHITUC

Hello there, 


I'm having a form with checkboxes for GDPR compliance. I'd like to force the "opt-out" email field if one of my checkboxes isn't checked.


I thought helpful if playing with the input tag below:


<input type="checkbox" name="Leads0emailAddressOptOutFlag[]" id="Leads0emailAddressOptOutFlag0" value="Leads0emailAddress0" enabled="true" tabindex="0" checked="true" style="height: 0px; visibility: hidden;">


But not at all...


Any idea?


Thanks in advance,