Once a dropdown is set to readonly I need a button to be hidden, how can I do this?
I have tried everything and can't get it to work. Here is one that I tried:
var HourField = this.getfield("Hours");
if (HourField.readonly == true){
this.getfield("Submit Button").display = display.hidden;
}else{
this.getfield("Submit Button").display = display.noPrint;
}