AnsweredAssumed Answered

Problems with dependency "SetPanelVisibility"

Question asked by Salvador Lopez on Jan 18, 2018
Latest reply on Jan 19, 2018 by Salvador Lopez

Hi everyone, Francesca Shiekh, Angel Magana, Tevfik Tümer, Matt Marum

I have created a custom dependency in:  custom/Extension/modules/Accounts/Ext/Dependencies/setPanelVisibility.php

with the following content:


    'hooks' => array('edit','view'),
    'trigger' => 'true',
    'triggerFields' => array('tct_fedeicomiso_chk_c','name'),
    'onload' => true,
    'actions' => array(
            'name' => 'SetPanelVisibility',
            'params' => array(
                'target' => 'LBL_RECORDVIEW_PANEL2',
                'value' => 'equal($tct_fedeicomiso_chk_c,true)',

but in the chrome console it shows me the following:



I have checked the record.php file and the panel exists.



So, when i try to create a new Account, this custom dependency does not work and the dependencies previously defined

from Studio does not work.


However, when i delete the file with custom dependency, everything works fine.


It seems that the file interferes with all the dependency functionality of the vardefs.


I have applied permissions and QRR but nothing seems to work.

Any suggestion?




Salvador L.