AnsweredAssumed Answered

Custom One to One relationship

Question asked by Nikhil Shukla on Nov 30, 2016
Latest reply on Dec 2, 2016 by Nikhil Shukla

Hi,

 

I am trying to hide relate field based on some conditions. When I am creating custom One to One relationship, I can see the field name available for layout but not in fields. In which .php or any other file for that object relate Field details can be found. In scenario for Cases object there is relate field on Account object which I was able to hide with following code

           

<?php
$dependencies['Cases']['required_accounts'] = array(
'hooks' => array("edit"),
'trigger' => 'true', //Optional, the trigger for the dependency. Defaults to 'true'.
'triggerFields' => array('status'),
'onload' => true,
//Actions is a list of actions to fire when the trigger is true
'actions' => array(
array(
'name' => 'SetVisibility',
//The parameters passed in will depend on the action type set in 'name'
'params' => array(
'target' => 'accounts',
'value' => 'equal($status, "Closed")',
),
),
),
);

 

 However when I created custom One to One relationship with Account object I am not able to find the field name anywhere in vardefs. Could someone help with the name of that field or where can I find them?

Outcomes