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
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"});
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.
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs