Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Set Field's Content Fill Color

$
0
0

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)


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>