Javascript to pull a PDF field into the Subject line of email?

I've created a fillable PDF form using Pro X.  I'd like to program the Submit button so that once in the email portion, the subject line would automatically pull 3 specific fields from the PDF file.
Example:  After hitting "Submit"....once in the email, I'd like the Date, Vendor Name, and PO # from the PDF form to automatically pull into the Subject line.
I have to PDF the complete document and go through the Desktop Email Application on my PC.
Thank you!

Hello Everyone,
I am having the same issue as tlg814 with needing three fields to pull into the subject, and I followed the blue print of the code as well, but I am only getting one field to populate in the subject line.  I am using Acrobat XI. Here is my code:
Mouse up> Run a JavaScript
var parts = getField("SR#", "Urgency", "Ship To").value
this.mailDoc({
cTo: "[email protected]",
cCc: "[email protected]",
cSubject: parts,
cMsg: "Please create a Parts Request for the items in this email. Thanks"
Any thoughts as to why it is not pulling all three fields?
Thanks

Similar Messages

  • Insert data from a field into the subject of an email generated form a form

    Hi,
    Is there a way to have the contents of a field come up in the subject of an email that is made when a submit by email button is clicked.
    The data we want is from a date field for a 'week commencing'.
    We have a text string that is entered on the button's properties - email subject, but we'd like to add the contents of a field on the form onto this.
    any ideas?
    thanks,
    declan.

    Try this code in the click-event of the mail-button (you will have to adjust it of course):
    var anrede;
    if (xfa.form.Formular.Beratungsprotokoll.Kunde.Anrede.rawValue == "Herr") {
    anrede = "Sehr geehrter Herr "; }
    else {
    anrede = "Sehr geehrter Frau "; }
    var mailText = anrede + xfa.form.Formular.Beratungsprotokoll.Kunde.Name.rawValue +
    "\nPlease print this form and mail it to me!" +
    "\n\nTo speed up processing you can also click on the button 'ok'. " +
    "This will generate an e-mail. Please send this e-mail to me." +
    "\n\nThank you" +
    "\nYour agent";
    event.target.submitForm({cURL:"mailto:" +
    Formular.Beratungsprotokoll.Kunde.EMail.rawValue +
    "?subject=consulting minutes&body=" + mailText,
    cSubmitAs:"PDF",cCharset:"utf-8"});

  • Is there a way to add the information from a custom field into the subject line of notification email

    I have a field in my form that I would like to add to the Subject line in the email notification form. Is there a way to pull that out of the form and add it?

    Try with t.code AUT10 -Audit trail using which you can see the change histories.
    Regards,

  • Add text field into the 'subject' of a email submit button

    I have a form where the client will enter their name, organisation, query and details of their query into text fields.  I would like the text in the 'query' field to be added to the 'subject' of the email submit button.  This will identify different queries submitted by other clients before opening up the completed pdf form attachment.

    Hi,
    if you use ES3 or ES4 you can use my macro to create email scripts with values from form fields.
    http://thelivecycle.blogspot.de/2012/05/mailto-maker-marco-v1.html

  • How can I embed a pdf file into the body of an email?

    How can I embed a pdf file into the body of an email?

    The problem is defining what it even means to “embed” a PDF file in the body of an e-mail, especially if you are dealing with a multiple page PDF file.
    E-mail is either pure text, rich text (something akin to RTF in Word), or HTML. PDF is not compatible with any of these. Thus, to embed a PDF file, something has to be converted and that means the PDF would be converted to a less graphically rich raster format. But is that what you would really want?
    I think that the MacOS and iOS e-mail clients do under some circumstances place an attached PDF file within HTML segments and by clicking on same, you get the equivalent of extracting the full PDF file, but I have no real experience with that.
    Another alternative is HTML with a proxy image with a hyperlink to an external PDF file that is invoked when you click on the hyperlink.
    Perhaps you can explain what you are really trying to accomplish and what the recipient of such an e-mail's actual experience would be?
              - Dov

  • I want to be able to paste a bunch of text into the subject line buit to only keep the first maybe 50 characters. How can I limit the size of the subject line?

    I need the ability to paste a bunch of text into the subject line but for it only to capture the first 50 or x number of characters. Can I limit the size of the subject line characters somehow in an ini or profile setting?

    If your problem is with Mozilla Thunderbird, see this forum for support.
    [https://support.mozillamessaging.com/en-US/home] <br />
    or this one <br />
    [http://forums.mozillazine.org/viewforum.php?f=39]

  • How to increase the length of the subject line in email using FM

    Hi
    we have maintained 50 characters for the subject line initially, but some subjects are having more than 50 characters. how can we increase the length of the subject line in email.
    urgent.
    points will be rewarded generousely.

    Hi Rana,
    In this case, you have to create a user defined field of required length under Journal Transactions Header to fill the data.
    Regards,
    Vijay Kumar
    SAP Business One Forums Team

  • Pulling information from an email and pasting it into the Subject line

    i have email requests coming in from project managers that are automatically created after they fill out a form.
    Outlook is set up with a rule on their machines to forward the request to my art dept.
    Problem is that the emails always have the name of the form as the subject line.
    the email generates project info within the body. Is there a way to set up a rule that will pull the info i want from the body of the email and amend the subject line with it?
    Nick

    I would like to use the
    "PROJECT NAME 
    CUSTOMER REFERENCE OR SITE NAME"
    (along with the information that would should have come after it)
    to become the subject line.
    I read from your previous post though that scripts should run after rules, so i would need to combine
    the rule i am already using into the script correct?
    I am a graphic designer, working on storefronts and fascias, i only dabble with outlook so thank you
    for your time.

  • Adding Field Info in Subject Line of Email with Attached PDF

    Had a question regarding the email submit button. I wanted to know if there was a way to put the information put into a specific text field in the email subject line when the PDF is being sent via email as an attached.
    For Example:
    Question one on the form would be.....
    1). Why are you submitting this email?
    (Answer by User) Website Technical Issue
    I would like to take the text "Website Technical Issue" and add to subject line of the email being sent by the user when they press submit/send at the bottom of the PDF. So it would send an email out of their inbox, with the attached PDF they filled out, and the subject line stating what ever they put in text field 1.
    Any help or a given PDF example would be greatly appreciated! Thanks in advance!

    Hello Everyone,
    I am having the same issue as tlg814 with needing three fields to pull into the subject, and I followed the blue print of the code as well, but I am only getting one field to populate in the subject line.  I am using Acrobat XI. Here is my code:
    Mouse up> Run a JavaScript
    var parts = getField("SR#", "Urgency", "Ship To").value
    this.mailDoc({
    cTo: "[email protected]",
    cCc: "[email protected]",
    cSubject: parts,
    cMsg: "Please create a Parts Request for the items in this email. Thanks"
    Any thoughts as to why it is not pulling all three fields?
    Thanks

  • Can I script an email button to put one of the form fields in the subject line and to name the form?

    This is a fillable form on a website.  We want people to complete the form, then click on the email button to send it to us.  Prefer to have the "name" field populate in the "subject line" of the email, and also rename the form that same field name.  Is that possible?

    In the sample I used the below syntax to send an email..
    event.target.submitForm({cURL:"mailto:"+ strToAddress + "?cc=" + strCCAddress + "&subject=" + strSubject + "&body=" + strMessage,cSubmitAs:"PDF"});
    The highlighted ones are local variables which will hold the value from the form fields.
    If you want to get the Subject from Name field in the form, use some thing like this.
         var strSubject = name.rawValue;
         //and then pass the value to the code.
         event.target.submitForm({cURL:"mailto:"+ strToAddress + "?cc=" + strCCAddress + "&subject=" + strSubject + "&body=" + strMessage,cSubmitAs:"PDF"});
    Hope this helps..
    Thanks
    Srini

  • I use Go Daddy Web Mail and FireFox may be preventing me from being able to put text into the subject line when composing an email.

    As the question / statement says, When in Firefox, once I've started my webmail application through Go Daddy, I can compose an entire email filling out all the required info. But, when I put the mouse over the 'Subject Line' and click, no cursor appears.
    Having walked through this with Go Daddy, they are convinced that it's FireFox because we opened up their webmail with 2 other browsers and both allowed me to plug in a subject line.

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!

  • PDF form not populating Subject line in email when submitted in Google Chrome browser

    Google Chrome doesn’t seem to work, but all other browser do.  In Chrome the subject line and location populate the CC: and BCC: fields in email client and not the subject line? 
    My current javascript is:
    if (email != "")
                    this.mailDoc({bUI:false,cTo:email,cSubject:location,cMsg:"Completed Employee Appointment Request Attached"});
    *I'm sure something can be added or fixed to resolve this so it will work in all browsers.  It is important to me that it work well in IE, Chrome, Firefox, and Safari.  The big four browsers anyways.
    Sample image of issue:  Basically user is forced to delete bcc: and then click send.    Thus no subject line.  Which means a manual move to location folder from inbox will be necessary, because I have rule setup to sort the inbox based on subject line.

    My final solution was to post the form and offer a link to dowload/install Adobe Reader and to also offer a link for Chrome users.
    * I will continue to look for a better solution, but at least the above is functioning.
    **I also set my bUI to true.
    Many thanks, Tim
    P.S.  I did report this to Google Chrome, heard nothing yet.  Also if you think of a better solution let me know.  I'm not familiar with javascript........I have a better understanding of HTML.......if this were HTML I would have done the below.
    <html>
    <body>
    <script type="text/javascript">
    alert("this is an alert");
    function go() {
                    alert("Hi");
                    var location = document.getElementById("location").value;
                    //console.println("location: = " + location);
                    var email = "";
                    email = "[email protected]";
                    if (location == "Select a location")
                                                    alert("You need to select a location first");
                    else if (location == "Other")
                                    email = "[email protected]";
                    if (email != "")
                                    //this.mailDoc({bUI:true,cTo:email,cSubject:location,cMsg:"Completed Employee Appointment Request Attached"});
                                                    window.open('mailto:' + email + '?subject=' + encodeURIComponent(location));
    </script>
                    This is a test
                    <input type="text" id="location" value="Select a location">
                    <input type="button" value="submit" onclick="go()">
    </body>
    </html>

  • How do you control the Subject Line in emails sent from RS_PREC_PLAN?

    We are using the program RS_PREC_PLAN to broadcast precalculated workbooks from a process chain.  We have entered values for each parameter (i.e. Precalc server, workbook, web template, and email addresses) and saved as a variant. 
    However, each time the program is called from the process chain the email recipient gets an email with "Test" as the subject line.  Is there any way to control what is displayed in the subject line of the email?
    Thanks,
    Brad

    Brad,
    Looks like the subject is hardcoded...
    you can find the same in
      Form  sent_mail
    where there is :
    l_r_parameter->add( i_id    = 'DESCRIPTION'
                          i_value = 'Test'(001) ).
    what you could do is create a copy of the same program and look at passing the subject to the program...
    Arun
    Hope it helps...
    You could also look at using the how to document on sending workbook as attachment available in SDN - created by Durairaj Athavan Raja,,
    Arun
    Hope it helps...

  • Insert a pdf file into the body of an email

    how do i put a pdf in the body of an email?

    I can't vouch for Thunderbird since I don't use it but, any web page editor will do the trick.
    Here is a decent article on About.com on how to do this. Good luck.
    http://webdesign.about.com/od/intermediatetutorials/a/aa050800a.htm

  • Import Text From Form Field into Subject Line of Email

    Hello,
    Is there a way to import text from a form field into the subject line of the email when sending back (attaching) the PDF form?  In other words, there is an "applicant name" and I would like that name to be the subject line of the email.
    I am using Adobe Acrobat X (10.1.7)
    If any one has aby guidance or resources online where I can locate this information I would greatly appreciate it!  I have been searching all day but have not found a solution yet. 
    Thanks!

    Thank you so much for the help.  For some reason I cannot get it to work though.   Now, when I hit the submit button it does not do anything.
    Previously, I had the following code under
    ACTIONS>Mouse Up>Submit a Form
    mailto:[email protected]?subject=Employee Application
    I removed the above mailto URL and put in your code as a Javascript function. I made sure that my field name matched the name in quotes within the code.
    I used the following:
    var subject = getField("lastname").value 
    this.mailDoc({
    bUI: false,
    cTo: "[email protected]",
    cSubject: subject,
    cMsg: "Type message here"
    Do you see anything obvious that I am doing wrong?
    Many thanks!

Maybe you are looking for

  • Desktop always opens as Finder Window - PPC

    Hi all, This is a strange one and kind of hard to explain. I'll just start out by saying it only happens on my G5 PPC running 10.5.x Some background: I always have "open safe files" in Safari turned off and all files are downloaded to the "Downloads"

  • AD after action script parsing

    Hello. We are about to use the after create action Resource Action feature of the AD Resource Adapter. We wish to create the physical Home Directories on the Fileserver as an after create action. I am wondering how error handling can be incorporated.

  • What is the "iOS rich content paste pasteboard type" when copying from Safari?

    When I copy text from a website in Safari, two pasteboard items are created. This is the output of [pasteboard items]         "Apple Web Archive pasteboard type" = < [...archive...] >;         "public.text" = "pages of a journal,";         "iOS rich

  • Failure to configure windows updates. Reverting changes.....ordinal 282 could not be located in the dynamic link library

    Hi, My laptop (Lenovo Amd athlonII P360 dual-core processor) with OS windows 7 shutdown accidentally during updates. From then on I could log in to my system but it keeps popping up some error messages like.... tpsdsvc.exe-ordinal not found----ordina

  • Won't boot up unless restarted off install disk

    Own an iBook G3 900MHz and recently installed OS X 10.4.11 and updated subsequent software like iTunes 8.02 et. al. When I shut the laptop down now I can not reboot. The little crankshaft below the apple icon simply spins for a few minutes then the s