AnsweredAssumed Answered

Disable a field - NOT ReadOnly

Question asked by delsugar on Nov 16, 2016
Latest reply on Nov 20, 2016 by Ishani Lad

SugarCRM 7.7.2.0 Enterprise

 

Does anyone know how to disable a field. Not make it readonly but disable through code.

 

The reason is that I have a field that I do not want sugar to update. If I put it as readonly it will still update the field upon saving for admin.  I do not want it to save at all regardless of if you are admin or not.

 

I did try putting

under /custom/Extension/modules/Accounts/Ext/Vardefs/my_field.php

 

$dictionary['Account']['fields']['my_field']['readonly']=true;

 

This works but for admin it will still save......

 

Thanks

Outcomes