Question

I have made a .indd file with some form fields in it.

Now I want to get all these fields through indesign script and manipulate its content

so that i can change the content of fields and apply these changes to .indd file.

Was it helpful?

Solution

Well I have got this and able to get all fields of the doc.

var myDoc = app.open(File("fileName.indd"));
var allformFields = myDoc.formFields;
for(var i = 0; i < allformFields.length; i++){
    var tf = allformFields[i];
    alert(tf.name);
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top