Set Field's Content Fill Color

Beachbum2015

27-08-2015

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?

Thanks!

(Using ES4)

View Entire Topic

XIIIX-inTVbY

12-09-2015

Using your form >> I've put the "correct" code in the field and it works fine for me. No need to mess with the XML source.

DESIGN VIEW

Screenshot 2015-09-12 15.27.51.png

PREVIEW MODE

Screenshot 2015-09-12 15.28.40.png

I'll post the form back here for you to use >> all the best..

https://www.dropbox.com/s/1q4s9k7ggdgfyhe/Name_Color%2000.pdf?dl=0