I have a custom orders module, that I am adding products to via a relate field, I want to be pull the price field into orders when a product is selected. I been following this example
https://johndopenotes.wordpress.com/2013/03/18/sugarcrm-populating-fields-using-a-relate-field/
But nothing happens when I select a product either in the quick create or the full form. Below is the code I added to the vardef.ext.php, what am I missing?
$dictionary[‘AOS_Products’][‘fields’][‘name’][‘populate_list’] = array(‘name’, ‘id’, ‘price’);
$dictionary[‘tbn_order_items’][‘fields’][‘product’][‘field_list’] = array(‘product’, ‘aos_products_id_c’, ‘price’);