I create some custom fields from the from an existing entity. I added the fields to the layout. My question is, is it possible to make these fields visible only for non-admin users?
layout manager fields for non-admin users?
Collapse
X
-
Tags: None
-
In detail and edit view classes you can write
PHP Code:setup: function () { Dep.prototype.setup.call(this); if (this.getUser().isAdmin()) { this.hideField('myField'); } else { this.showField('myField'); } }
If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.
Comment