Avatar

Level 2

The image below illustrates the hierarchy of my form. In the "exit" event of the drop-down list object named "ddList1" I have the code outlined below, but I believe my reference to the objects must be off. I think I can't see the forest for the trees, so I'm hoping someone can set me straight.

Drop-down List Exit_event Code:
 

if(form1.PurchasePlan.sfPP2.14.ddList1.rawValue == "Condition One")

{

form1.PurchasePlan.sfPP2.14.userText = "Test text one"

}

if(form1.PurchasePlan.sfPP2.14.ddList1.rawValue == "Condition Two")

{

form1.PurchasePlan.sfPP2.14.userText = "Test text two"

}

Hierarchy2.jpg

Thank you.