Skip to main content
aaaaaa13788231
Participant
July 12, 2018
Question

Using JavaScript to automate tasks

  • July 12, 2018
  • 1 reply
  • 249 views

Hello,

I want to:

1. Count text fields with specific color using JS (text fields are created manually with Adobe).
2. Insert into them their respective number or string (like SOMETHINGX, SOMETHINGX+1 and so on).
a) clean all fields before step 2
3. Change color of each text box (without mundane, manual work) of each box.

Are these magic tricks possible?

Cheers

This topic has been closed for replies.

1 reply

Inspiring
July 12, 2018

For #1, yes, you can change a field's background, border, and text color.

For #2, what do you mean by "insert into them"? Do you want to set the field value, change the field name, or something else?

What do you mean by "clean all fields"?

For #3, you can use a script to change the background (fillColor) color, the border (strokeColor) color, and text (textColor) color.

If you need more help with any of these, you can check the Acrobat JavaScript reference and post again.