Since the upgrade to Acrobat Reader version 9, we've found that the caption gets highlighted with a red border when this required field is empty and not filled in. In earlier versions, only the input box area was highlighted in red. Is this intentional?
Thank you S. Bishop for all your help, but I cannot get your method to work, nor am I exactly sure what I'm supposed to see...
Now my employer wants me to not make these fields required anymore because "it isn't appealing to the eye and thus doesn't meet the professional image we want to convey to our agents". Meaning, the hours and hours I spent on coding to make the fields required and not required based on values, etc. is all for none because of this new way Adobe displays required fields.
Below was the answer to the original problem although I would just do:
app.runtimeHighlight = false;
Thomas McConnachie - 12:26am Dec 19, 08 PST (#9 of 21)
if (app.runtimeHighlight == true)
app.runtimeHighlight = false;
I have this in my root form initialisation. Just turns off highlighting, including shading the fields with the blue fill.
My code was as an example to do your own border highlighting. Looking back now, I don't see it, but thought someone had asked how to change them manually. You could use similar code to change the back ground color. I am now thinking it may not do anything because it makes the borders red and they are already red for you.
This will set the background color of just the data area of a test field or most other data fields for that matter. It sets it to gray. The 200,200,200 are RGB values.
You probably have already thought of this, but as a temporary workaround that I did was to separate the caption from the input field (that is, make it two fields instead of one). Then it looks a little better unless you specified a margin in the Layout tab, then you'll see two red boxes around the input field!!
to work before and it's because I have my field's Appearance set to None so I don't have any borders around the entry area. If I choose Custom and set the borders to none, then I can use your script to change the fillable area. I might need this to work around my problem. Thank you!
Actually, I didn't think of that. I will propose this as an option and see what they think. Although, it will take me a while since I will need to reconstruct my form. You see, it's a dynamic form with multiple flowing subforms that has about 80-120 fields on each page and it's 4 pages long. But if it will make my employer happy, I'm willing to tackle this beast. Thank you for your help.
Ok so now they figured they'd keep the required fields, but they want the highlighting turned off...and only come back on when the form is submitted. But how do I restrict the user from turning it back on themselves? Can I remove the Highlight Fields button? I tried setting the app.runtimeHighlight = false on the Layout:ready event so everytime the user clicked the button the highlighting would go back to false, but I guess clicking the Highlight Fields button doesn't trigger an event?