These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

global font color change?

cfinley
Registered: Jan 9 2008
Posts: 70
Answered

Hi

I am using LIveCycle 8.0, and I have a set of 6 text boxes, named the same and globally binded so text entered into the first will repeat in the other 5 automatically

I want to set up a change event so it will change the font color in all 6, but it is only applying to the first field (ie textfield[0])

how can I reference all 6 textfields without changing their names?

Thanks

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The global binding only applies to data. All other from field properties are unique to the field, so you need to change the font color on each one individually. If you have 6 fields you'll have 6 lines of code in the event.

EX: In FormCalc

TextField[0].fontColor = "255,0,0"
TextField[1].fontColor = "255,0,0"
TextField[2].fontColor = "255,0,0"
TextField[3].fontColor = "255,0,0"
TextField[4].fontColor = "255,0,0"
TextField[5].fontColor = "255,0,0"

In JavaScript you'll need to use the "resolveNode()" funcntion to access the other instances.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

cfinley
Registered: Jan 9 2008
Posts: 70
for all who want to see the solution, my example code is posted in this related thread:

http://www.acrobatusers.com/forums/aucbb/viewtopic.php?pid=25806#p25806

Thanks thomp!