layout manager fields for non-admin users?

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • yuri
    replied
    Classes like client/src/views/email/record/detail.js

    Leave a comment:


  • Ryan_WHR
    replied
    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

    Leave a comment:


  • yuri
    replied
    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');
       }
    } 
    

    Leave a comment:


  • elbowprogrammer
    started a topic layout manager fields for non-admin users?

    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?
Working...