Hi all.
I am trying to use the vardef (populate_list) to pull fields in on the subpanel create. I have this working for Contacts by doing something simple such as:
$dictionary['Contact']['fields']['account_name']['populate_list']['description'] = 'description';
However when trying to do the same for a parent field (flex relate), I can't seem to pull it in. Even when using the actual link itself, for example:
$dictionary['Calls']['fields']['calls_leads']['populate_list']['description'] = 'description';
I spotted the article from André Lopes (https://sugarclub.sugarcrm.com/dev-club/b/dev-blog/posts/introducing-populate_5f00_list-in-parent-fields) however when trying to implement it, nothing seems to be pulling, I've tried the following:
$dictionary["Calls"]["fields"]["parent_name"]['auto_populate'] = true; $dictionary["Calls"]["fields"]["parent_name"]['parent_populate_list'] = [ 'Leads' => [ 'description' => 'description', ] ]; $dictionary["Calls"]["fields"]["calls_leads"]['auto_populate'] = true; $dictionary["Calls"]["fields"]["calls_leads"]['parent_populate_list'] = [ 'Leads' => [ 'description' => 'description', ] ]; $dictionary["Calls"]["fields"]["calls_leads"]['auto_populate'] = true; $dictionary["Calls"]["fields"]["calls_leads"]['parent_populate_list'] = [ 'leads' => [ 'description' => 'description', ] ];
I feel I am missing something super obvious, so if anyone can help I'd really appreciate it!
Thank you,
Daniel