Hi i am trying to create dependencies so that while updating value of a field to a particular value, another field can be made mandatory/required.
So i went to opportunities module, this folder: /custom/Extension/modules/Opportunities/Ext/Dependencies
Created a file: oppo_dep.php.
The content of this file is:
<?php $dependencies['Opportunities']['Prob_Change'] = array( 'hooks' => array("edit"), //Trigger formula for the dependency. Defaults to 'true'. 'trigger' => 'true', 'triggerFields' => array('probability','lead_source'), 'onload' => true, //Actions is a list of actions to fire when the trigger is true 'actions' => array( array( 'name' => 'SetRequired', //Action type //The parameters passed in depend on the action type 'params' => array( 'target' => 'lead_source', 'label' => 'lbl_lead_source', 'value' => 'equal($probability, "2")' ), ) ) ); I did a quick repair and build. ideally as per the documentation, it should create oppo_dep.ext.php at the following path: custom/modules/Opportunities/Ext/Dependencies But after running QR&R , no file is getting created. I have deleted the cache and also made the file and Directory executable using chmod 755 in the Extension directory path:/custom/Extension/modules/Opportunities/Ext/Dependencies Please help me if creating dependencies like this is possible in suitecrm version 7.11. Is there any other way to change a field to required from not required based on value of any other field. Thanks