Answered
Hello Everyone
I'm trying to change the font color in a field after the user has entered text. I'm currently using a RadioButtonList and the following script:
txtfldCOMMENTS.fontColor = "0,183,0";
I've searched through the forum and found a PDF form that will give the RGB values for the color palette but can't figure out how to implement it in JavaScript. An example color would be:
["RGB", 0,0.667,0]
The PDF ColorCalculator form can be found at http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/using_colors/ColorCalculator.pdf
Any help would be greatly appreciated.
Thanks
Lane
txtfldCOMMENTS.fontColor = "0,183,0";
is for an element on a [b]LiveCycle form[/b]. The ColorCalculator PDF is a demonstration of using color in an [b]AcroForm[/b]. These are two very different things. Which are you using?
You can convert values provided on the "Color" Calculator to LiveCycle colors by multiplying the "RGB" values by 255.
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script