Been through the other threads on the subject, and the manual.
Can anyone see anything obviously wrong with this? :
var ctrltype = runner.getControl(pageid, 'type_id');
var ctrlstatus = runner.getControl(pageid, 'model_status');
ctrltype.on('change', function(e){
if (this.getValue() ==1{
ctrlstatus.setEnabled();
}else{
ctrlstatus.setDisabled();
ctrlstatus.setValue("");
}
});
Added to the JavaScript On Load event in the add page