How Do I: Fill a read-only field based on selections from 2 DDlists?

Avatar

Avatar

GlennCauley

Avatar

GlennCauley

GlennCauley

24-11-2009

Follow-up from issue:  

http://forums.adobe.com/message/2417876#2417876

I have 2 drop-down lists...  "Department" and "SubDepartment"

The selection in DDlist "Department" spawns a unique list in DDlist "SubDepartment"

I select the proper items from both DDlists.

When I do this, I want read-only text field "NameOnIDBadge" to be populated with a pre-defined entry.

Example:

In "Department" DDlist, select item "Finance & Administration"

In "SubDepartment" DDlist, select item "Food Service" from the list that appears

THEN:

In read-only text field "NameOnIDBadge" the following predefined read-only text appears:  "Contract Food Serv."

(Thanks to Paul, I already know how to make the selection in DDlist "Department"  affect the selection list in DDlist "SubDepartment"

but I don't know how to make the selection of both DDlists create a new pre-defined entry in a text field.)

I have attached a mockup of the file I am working with...

View Entire Topic

Avatar

Avatar

xrum

Avatar

xrum

xrum

25-11-2009

if ((firstDDList.rawValue="Whatever") && (secondDDList.rawValue = "Whatever"))

yourTextBox.rawValue="the right text"

this code would go under the second DDList Exit event, replace the code i put in there to add the check of the first DDList