AnsweredAssumed Answered

read only dependency based on parent field

Question asked by on Dec 11, 2015
Latest reply on Dec 11, 2015 by Francesca Shiekh

Hi all,

I'm trying to create a read only dependency based on a parent field value with the following code:


$dependencies['ap_applicant']['last_name_readonly'] = array(
    'hooks' => array('edit'),
    'trigger' => 'not(equal(related($ap_application_ap_applicant_1,"status_c"), "Created"))', 
    'triggerFields' => array('related($ap_application_ap_applicant_1,"status_c")'),
    'onload' => true,
    'actions' => array(
            'name' => 'ReadOnly',
            'params' => array(
                'target' => 'last_name',
                'value' => 'true',


The result is, the dependency does not respect the conditions and the target field is always read-only. I don't think it's an error in the trigger formula that I've been testing via the studio with a simple visible dependency (and it worked like a charm!)


does anyone have a suggestion?