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

Submit button

mreiman56
Registered: Nov 9 2009
Posts: 8
Answered

How do I set my submit by email button to use the form name as the subject line in an email? The button works correctly and I know how to add my own subject line. My problem is I want to use the form name.

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
This can be done with a custom button.
But remeber, if it form is opened temporary, for example directly from a mail attachment or in a browser, it will be have a temporary name (like: 117k1bb4r3ec94fpv.pdf) instead of its original name.

var MyDoc = event.target;var MyFileName = event.target.documentFileName; //get current file namevar MycTo= "<span class="spamspan"><span class="u">someone</span> [at] <span class="d">somewhere [dot] abc</span></span>";var MySubject = "My Mail Subject " + MyFileName ;var MyMessage = "My Mail Message"; MyDoc.mailDoc({bUI: false,cTo: MycTo,cSubject: MySubject,cMsg: MyMessage,cSubmitAs: "PDF"});

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs