Set Field's Content Fill Color



I have a few text fields that I want to set the background, or fill color to a different color when the form opens.  I want these fields (not the captions) to stand out from the others, rather than making them required fields.

I tried this method with JavaScript in the field's initialize event, but the field only changes color when you enter the field.

Subform_Employee_Info.Table1.Row1.Name.ui.oneOfChild.border.fill.color.value = "0,200,0"; // green

I want the new fill color to show when the form opens.

How would I go about accomplishing this, and at the same time, making sure that the field color does not print?


(Using ES4)

View Entire Topic



OK >> I solved it... SOLVED!!!!!

The video indicates that you have HIGHLIGHT Fields setting active in Adobe Acrobat Pro/Reader - if you switch this off you will get the behaviour you expect. I'm not sure you will be in love with this solution (as it is difficult to ensure other users will switch off this setting) but -- staying on topic -- if you test my form again after switching HIGHLIGHT Fields off in Adobe Acrobat Pro/Reader it should perform exactly as you intend (assuming I've finally interpreted your intentions correctly).

does it work now... YAYYYYY!