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

Change background color

kukka
Registered: Jun 1 2011
Posts: 16
Answered

I am trying to fill color in a textbox if the user clicks submit button(different colors based on different results). Although the color is changing, it is not showing unless I click the text box . How can show the background color without moving the cursor onto the text box.
 
I want to write this code in the button. Your help is appreciated.
 
Thanks

My Product Information:
Acrobat Pro 9.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
On an AcroForm the background color should change instantly. Is this a LiveCycle form? There are issues with field updates, and colors on LC forms.

What is the code used to change the color?

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

kukka
Registered: Jun 1 2011
Posts: 16
Thanks thom for your reply. I am using "textbox1.fillColor" to fill the text box. It is changing the color but now showing until I click in the box. I am using Acrobat 9.0 pro

Thanks
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Accepted Answer
Is the field highlighting turned on (on the purple bar)? Field Highlighting will block out the field fill color.

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

kukka
Registered: Jun 1 2011
Posts: 16
THANKS THOM