I have created a form in Acrobat that includes a submit button. When the user clicks it I want certain fields to be exported as tab delimited text. In Acrobat, when the button is clicked the window opens, allowing me to select the folder to export into, and the data is exported. In reader nothing happens. The debugger gives me this error:
RangeError: Invalid argument value.
Doc.exportAsText:2:Field Submit:Mouse Up
I've looked and can't seem to find information on this error. My original script is this:
var aSubmitFields = new Array ( "Name", "Address")
this.exportAsText ({aFields: aSubmitFields})
As you can see it's very basic. I don't understand why it will not work.
EDIT: after removing the "a" from ({aFields I get the error:
NotAllowedError: Security settings prevent access to this property or method.
Doc.exportAsText:2:Field Submit:Mouse Up