AnsweredAssumed Answered

How to auto poulate a drop-down field depending on the values in other two drop-downs?

Question asked by Varun Nath A V on Mar 24, 2015
Latest reply on Mar 25, 2015 by Matt Marum
I am using SugarCRM 7.5

I have two modules say M1 and M2. M1 is having a drop-down field F1. Module M2 also have the same drop-down field with the same options as of F1. I call this field for M2 as F2. I have relate field say RM1 for Module M1 and RM2 for Module M2 in another module M3. This M3 is having a field F3 having same options as that of F1 and F2. So if a value is selected in RM1, then the value in F3 field should be populated with the value given in F1 for module M1. If RM1 is not selected then F3 should be populated based on the value in F2 for module M2.

I knew the above explained scenario is quite confusing

In short we know thatwWe could auto populate a field  by adding the parameters in the vardef of the field 

'auto_populate' => true,
'populate_list' => array(
'field1' => 'field2',
)

In this case I need to add conditions for this auto_populate. How could I achieve this?

Outcomes