Hi,
i find this code HTML5 to Add an agree to terms & conditions checkbox. This is work for me
-
Login and go to Administration
-
User
-
Custom message on register form - HTML allowed:
Add this code :
<form ... onsubmit="return checkForm(this);">
<p><input onchange="this.setCustomValidity(validity.valueMissing ? 'Please indicate that you accept the Terms and Conditions' : '');" id="field_terms" type="checkbox" required name="terms"> I accept the <u>Terms and Conditions</u></p></form>
<script type="text/javascript"> document.getElementById("field_terms").setCustomValidity("Please indicate that you accept the Terms and Conditions"); </script>
you can change the blue text if you want
Maybe will be better to create a plugin, but i don't know how to do ;)
Cordially Claude