Forums

Problem checkbox and label

gmarra7 11 Oct, 2018
Hello everyone I would not make the checkbox labels selectable by label.

Example: Accept information on <a data-toggle="modal" data-target=".privacy"> <strong> privacy </ strong> </a>

I would like that when I click on privacy not check.

I think this could give me problems with the GDPR.

Thank you
healyhatman 11 Oct, 2018
Ticking a box by clicking the label has been standard behaviour for like 20 years. I very highly doubt clicking the text that says "if you tick here you accept" would fall afoul of the GDPR. If you absolutely must though, and again you shouldn't, but if you absolutely must you'll have to add the checkbox in manually, or try https://stackoverflow.com/questions/12912236/stop-label-from-toggling-the-input-checkbox
gmarra7 11 Oct, 2018
I do not discuss the fact of ticking the box or not. The problem is that when I click on <a data-toggle="modal" data-target=".privacy"> <strong> privacy </ strong> </a> I do not expect to find the checkbox already empty.

I expect to be able to read the privacy
and then I make the choice whether to check it or not
This topic is locked and no more replies can be posted.