Hi All,
I have made a form designed in LC Designer 8.0 that generates an mail with enclosed data in the form of an xml file (so that Acrobat Reader can without "enabling user rights" etc use the form).
This xml file should prefebly contain a company specific xsl href in the header (Something like <?xml-stylesheet type="text/xsl" href="http://MyServer/MyOwn.xsl"?> ).
This because some of the receivers of this mail do not have a good way of viewing the xml data, so we made a local xsl that will show the data in IE).
This has proved to be not so easy (for me anyway)!
Has anyone figured out how to do this from the "design view"?
Or, maybe there's easier ways around this?
Even an reply with "it's not possible" will be appreciated (at least I know then)!...
Thanks In Advance
Lars
There are two differnt JavaScript methods.
1) When you submit the data as XDP, Acrobat copies "xfa.dataset" verbatim into the attached file. You can modify the xfa.dataset before submission to include the tags you want.
2) A better option though is to use the AcroForm "doc.submitForm()" function. With this function you can create you're own custom XML for submission. There is an example of using this function with custom data built from XFA forms. Since your code will be operating from inside an XFA form you're syntax will be a little different than the example.
i.e. you'll need to use this line to do the actual data submission
event.target.submitForm(...);
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script