Hi,
I am assuming you mean TextField1 is hidden. Both DropDownLists need a Change event.
Using
DropDownList1
DropDownList2
TextField1
------------------------------------
DropDownList1 change: (javascript)
if ($.boundItem(xfa.event.newText) == "text1" && this.resolveNode("DropDownList2").rawValue == "text2") {
this.resolveNode("TextField1").presence = "visible"; //show if true
}
else
this.resolveNode("TextField1").presence = "hidden"; //hide if false
------------------------------------
DropDownList2 change: (javascript)
if (this.resolveNode("DropDownList1").rawValue == "text1" && $.boundItem(xfa.event.newText) == "text2") {
this.resolveNode("TextField1").presence = "visible"; //show if true
}
else
this.resolveNode("TextField1").presence = "hidden"; //hide if false
------------------------------------
The DropDownLists (DDL) have list items text1 in DDL and text2 in DDL2. When either is changed the code is run. If the conditions are met (both text1 and text2 selected) then the TextField1 is shown. If either DDL has something else selected, TextField1 will be hidden.
See how this goes. 