Set the relationship panel to read-only for some pre-defined conditions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vincent
    Senior Member
    • May 2017
    • 176

    Set the relationship panel to read-only for some pre-defined conditions

    I have 2 entities Mstr and Dtl with one-to-many relationship (1 Mstr record with multiple Dtl records)

    There is a relationship panel of Dtl in the detail view of Mstr.

    I can set the fields of Mstr to read-only for some pre-defined conditions. how can I set the relationship panel of Dtl to read-only for some pre-defined conditions?

    Thanks



  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    If you can not achieve this with Dynamic Logic feature, you can override detail small view and set it with the code

    https://www.espocrm.com/documentatio.../custom-views/

    'recordViews' =>
    array (

    'detail' => your detail view,
    'detailSmall' => your detail small view
    ),

    'modalViews' =>
    array (
    'detail' => your view
    ),

    OR field view, if it's enoght

    Comment

    Working...