Announcement

Collapse
No announcement yet.

layout manager fields for non-admin users?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • layout manager fields for non-admin users?

    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?

  • #2
    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');
       }

    Comment


    • #3
      how would i add this to a layout
      could i add it to say-- custom/Espo/Custom/Resources/metadata/i18n/en_US/Contact.json

      could you give me a example

      Comment


      • #4
        Classes like client/src/views/email/record/detail.js

        Comment

        Working...
        X