How can I remove field colours when printing a pdf form
- May 29, 2024
- 2 replies
- 1831 views
Hi I have created a form and set the field colours as per our requirements, however, when I print the form the field colours also print. I have found the following code which works great when I print:
for(var i=0;i<this.numFields;i++)
this.getField(this.getNthFieldName(i)).fillColor = ["T"];
However, this switches off all field colours for all forms that I open from then on which is not ideal. The problem I have is that I can switch the colour back on, but all fields are one colour, but as you can see in the attached document certain fields need to be certain colours, what is the easiest way to reverse the removal of field colours ensuring that the correct colours end up in the correct fields?
Also is there an easier way to set the field colours than what I have done?
Any assistance would be greatly appreciated.
Cheers
Nicole
