disable Date widget when a value is selected

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
marwen
Member II

disable Date widget when a value is selected

Hello,

is there a code similar to the below code that can help me disable a datepicker field when another field is selected please see below code which is not working fine:


var fieldtest= scope.findFormFieldWithId(scope.allFormFields, "datepicker");
if(field.id==='dropdown'){
fieldtest.readOnly = true;
}

Any suggestion ?