I have created a custom enum field by extending the "EnumField" type. Here I am populating the options dynamically using an API call. I need to make this field readonly depending on some value returned from the API call. I have tried the following method:
But this is not setting the field readonly.
I am using sugarCRM 7.6. Does anyone came across this issue?