[Vtigercrm-developers] Why are certain fields under "profile" uneditable?
Alan Lord
alanslists at gmail.com
Fri Nov 20 07:38:39 GMT 2015
On 19/11/15 22:44, socialboostdk wrote:
> Hi there,
>
> I'm trying to hide certain Contatcs-fields (such as Assigned-to,
> created-date, some ID-field, etc) for normal users via profiles, but
> somehow some of them are locked.
Hiding Assigned To is totally non-trivial - it is a mandatory field.
Because there is no distinction between the Create and Edit functions if
you were to hide Assigned To a user wouldn't be able to create a new record.
As for the others you probably can. Take a look at the definition in the
vtiger_field table. You shouldn't need to edit any code to hide them
(hint: you are interested in the displaytype and presence values).
Alternatively you could write javascript to hide the field on page load
with an Ajax request to get the user's Role.
HTH
Al
More information about the vtigercrm-developers
mailing list