These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

email submit button subject line insertion

Katie
Registered: Oct 13 2008
Posts: 9

I need to insert the users actual input from a field INTO the subject line when the email button is clicked.

where View is the fieldname...

I get an Xml pasingerror: not well-formed (invalid token) (error code 4), line 101, col 99

What am I doing wrong? Can someone help me ???
Thanks,
Katie

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You can't place variable directly into XML. As the error implies, this makes the XML "Not well formed". Instead, you need to change the XML dynamically at runtime. Actually you have a couple of options.

1. Place code on the MouseDown event to modify the "format" attribute of the "submit" tag.

2. Submit the form with JavaScript in a regular button. Use the AcroForms "doc.submitForm()" function. Do a search on the "LiveCycle Designer" forum for this function. There's also an article here:
http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/submitting_data/

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