Loop edit fields
Here is a sample script that loop into form fields to edit some properties:
for (var i = 0; i < numFields; i++) {
var fName = getNthFieldName(i);
var f = getField(fName);
if (f.type === "text") {
f.textFont = font.Times;
f.textSize = 9;
}
}
It works fine as long as there is no field using the Acrobat Forms Field Hierarchies.
(text.0, text.1, text.2, and so on)
If there are any in the form I get this error: f is null

My question is: Is it possible to use a script that can edit properties by looping into all forms fields, using the Acrobat Forms Field Hierarchies or not?

