AnsweredAssumed Answered

read only dependency

Question asked by Karen Valle on Nov 6, 2015
Latest reply on Nov 8, 2015 by Vignesh V

Hi everyone,

 

My understanding for ReadOnly dependency is that a field can become read only when the value is true. I've written a ReadOnly dependency but when I run a QRR, my system stalls. Is something wrong with my code?

 

"lock record" is a checkbox

 

<?php

  $dependencies['WG001_Condo_Internet']['lock_marketing_rights'] = array(

       'hooks' => array("all"),

       'trigger' => 'true',

       'triggerFields'=> array('lock_record_c'),

       'onload' => true,

       'actions' => array(

            array(

                 'name' => 'ReadOnly',

                 'params' => array(

                      'target' => 'marketing_rights_c',

                      'value' => 'equal($lock_record_c, true)'

                 )

            ),

       ),

       'notActions' => array();

  );

?>

 

I run Enterprise 7.5.0.1

Outcomes