AnsweredAssumed Answered

Make custom enum field readonly

Question asked by Varun Nath A V on Mar 1, 2016
Latest reply on Jun 30, 2016 by Sam Roy

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:

 

$('.record-edit-link-wrapper[data-name="{customfield}"]').remove();

this.view.noEditFields.push(custom field);

 

But this is not setting the field readonly.

 

I am using sugarCRM 7.6. Does anyone came across this issue?

Outcomes