Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

All instances of object in master page

$
0
0

I have a Text Field object at the top of my master page. When the user selects from a drop down object, the Text Field's background color needs to change from white to either green, yellow or red. I created the script in the change event of the drop down and it works correctly until a second page is dynamically created as a result of text the user added to other fields. How do I select all instances of the Text Field?

 

Here's my script:

 

Form1.Subform4.Table2.Row1.Overall[0]::change - (JavaScript, client)
if ($.boundItem(xfa.event.newText) == "Green") {  xfa.resolveNode("#pageSet.Page1.OverallTop").border.fill.color.value = "204, 255, 204";//green color
}
if ($.boundItem(xfa.event.newText) == "Red") {  xfa.resolveNode("#pageSet.Page1.OverallTop").border.fill.color.value = "204, 255, 204";//red color
}
if ($.boundItem(xfa.event.newText) == "Yellow") {  xfa.resolveNode("#pageSet.Page1.OverallTop").border.fill.color.value = "255, 255, 0";//yellow color
}

Viewing all articles
Browse latest Browse all 5571

Trending Articles