I have a function called getFieldsArray() that returns an array of field names; something like
[ "field1", "field2" ]
I've taken pains to confirm that my function works as expected and returns an array.
I'm trying to figure out why the following code does not work:
var l_sDocXML = this.exportAsXFDFStr(
{
bAllFields : true,
aFields : getFieldsArray()
bNoPassword : true,
bAnnotations : false
});
If I assign the aFields parameter with a static array, everything works fine, but it won't work with a function that returns an array.
Any thoughts/insights?
PS - This is my 1,000 post here. Horray!
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com