I am trying to run the following script as a Custom Command in Adobe Acrobat DC. My dilemma is that only the first field is being generated. Two of my fields MUST have the same name due to an integration with another software platform. How do I get around this?
var sf = this.addField("Field_Name[0]", "signature", 0, [223, 554, 279, 540]);
var sf = this.addField("Field_Name[0]", "signature", 0, [332, 38, 388, 24]);
I seem to be able to create them manually just fine and Acrobat automatically differntiates both fields:
Here is what it looks like in Acrobat
If I open Properties for both of the above fields, the name is indeed identical for both - Acrobat is not appending the #1 to the actual field name.
How do I achieve this same end using javascript?
Thanks in advance for the help and Happy New Year!