Skip to main content
Known Participant
February 23, 2016
Question

Can Color within all Fields within a PDF be Changed with One Command?

  • February 23, 2016
  • 1 reply
  • 338 views

ie This simple command 'this.resetForm()' will reset all fields within a form.

Is there a command to change all fields within a form, to a specific color Attribute?

This topic has been closed for replies.

1 reply

Inspiring
February 23, 2016

You can use a script to loop through all of the fields of a form and set the text color, background color, or border color. Post again of you need help with the loop code.

If you use hierarchical field naming, you can affect more than one field with a single statement. For example, to set the background color of all fields that being with "GROUP1.", you could do:

getField("GROUP1").fillColor = color.green;