Hello everyone,
I have a field that is disabled when the page loads but i want to enabled the field when the user checks the check box this is the code but it's not working, no error in firebug
var ctrlPadre = Runner.getControl(pageid, 'clergy');
ctrlPadre.setDisabled();
var ctrlCura = Runner.getControl(pageid, 'padre');
ctrlCura.on('change', function(e){
if (this.getValue() == 'on'){
ctrlPadre.setEnabled();
}
else{
ctrlPadre.setDisabled();
}
});
thanks for your help
sorry i thought this was phprunner forum