Hey guys...
i've got a problem: i do have multiple fields... and one checkbox, my aim is, that if the user does check the checkbox... some of the fields should not be requiered any more...
i tried it with javascript code:
but the problem is that this doesn't work. well the js code does work... it changes the class name... but this doesn't have any affect... the seminar1-field is still required.😑
regards Ripei
i've got a problem: i do have multiple fields... and one checkbox, my aim is, that if the user does check the checkbox... some of the fields should not be requiered any more...
i tried it with javascript code:
function setSeminarClass(){
var seminar1 = document.getElementById("text_1");
if(document.getElementById("mitarbeiter_checkbox").checked){
seminar1.setAttribute("class", "cf_inputbox");
}else{
seminar1.setAttribute("class", "cf_inputbox validate-alpharequired");
}
}
but the problem is that this doesn't work. well the js code does work... it changes the class name... but this doesn't have any affect... the seminar1-field is still required.😑
regards Ripei