Hi
I'm wondering if someone can help me with writing the XML code for two submit buttons (Approve and Decline) which will attach the adobe form via email and automatically insert two fields into the subject line of the email
(two fields are Position Name and Approve or Disapprove)
Any ideas??
Thanks
Cat
This is the current code - if that helps
- Employee Change Form - Version 16 March 2010
<?templateDesigner isEmailSubmitObject true?>
Submit Approval by Email
<?templateDesigner StyleID apbx2?>
$data.form1
//{{Adobe LiveCycle Designer Generated Code Begin}} - sign data target version check script. Do NOT modify!
if (xfa.host.name=="Acrobat"){
if (app.viewerVersion < 8)
{
this.access = "readOnly";
}
else
{
this.access = "open";
}
}
//{{Adobe LiveCycle Designer Generated Code End}} - sign data target version script.
<?templateDesigner isEmailSubmitObject true?>
Submit Decline by Email
<?templateDesigner StyleID apbx2?>
$data.form1
//{{Adobe LiveCycle Designer Generated Code Begin}} - sign data target version check script. Do NOT modify!
if (xfa.host.name=="Acrobat"){
if (app.viewerVersion < 8)
{
this.access = "readOnly";
}
else
{
this.access = "open";
}
}
//{{Adobe LiveCycle Designer Generated Code End}} - sign data target version script.
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/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script