AnsweredAssumed Answered

Dependencies using "related" not working properly in listview & subpanel view

Question asked by Mike Solomon on Aug 8, 2014
I have created the following dependency

$dependencies['zz_expenses_detail']['status'] = array(  'hooks' => array("all"),
  'trigger' => 'not(equal(related($zz_expenses_head_link,"status"), "open"))',
'triggerFields' => array('zz_expenses_head_link'),
'onload' => true,
  'actions' => array(
    array(
      'name' => 'ReadOnly',
      'params' => array(
        'target' => 'distance',
        'value' => 'true',
      ),
    ),
  ),
);

It tests if the status of the related record is open and if not sets the field to be readonly
In record view this works properly but not in listview & subpanel view

In listview and subpanel view it is never editable

Any help resolving this would be appreciated

I'm not sure if my syntax is correct or if it is a bug 

Outcomes