Code:
/* Privacy-policy-read does not need to be checked during "login"
if (DISPLAY_PRIVACY_CONDITIONS == 'true') {
if (!isset($_POST['privacy_conditions']) || ($_POST['privacy_conditions'] != '1')) {
$error = true;
$messageStack->add('create_account', ERROR_PRIVACY_STATEMENT_NOT_ACCEPTED, 'error');
I think that this states what I have highlighted and you will have to add a conditional to test for a checked box or radio from the page.
add the draw button in the tpl file and check it with the js
Look at the modules/pages/login/jscript_form_check.php for this:
Code:
function check_radio(field_name, message) {
var isChecked = false;
if (form.elements[field_name] && (form.elements[field_name].type != "hidden")) {
var radio = form.elements[field_name];
for (var i=0; i<radio.length; i++) {
if (radio[i].checked == true) {
isChecked = true;
break;
}
}
if (isChecked == false) {
error_message = error_message + "* " + message + "\n";
error = true;
}
A new name added (grep for the file location where the above exists) add new name in those places and then similar code as above added to check if checked or not and associated error message...
Bookmarks