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

09-09-2015

my guess is that the error relates to incorrent SOM path referencing.

try this..

script to be placed in target field ('Name') on the [initilize] event


this.fillColor = "0,200,0"; // green