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!

Similar Messages

  • How do i read form data into subject lines of email?

    I'm having a problem pulling form data and putting it in the subject line of my email.
    "mailto:[email protected]?subject=Formform form+ F_Name.rawValue + L_Name.rawValue";
    I thought this would read text fields from the form and print them in my subject line. Instead it tprints it without the data.
    I was wondering if someone could point me in the right directon on what i am doing wrong.
    Button2.event__click.submit.target  "mailto:[email protected]?subject=Formform form" + F_Name.rawValue + L_Name.rawValue;
    Button2.execEvent("click");
    Any help would be appreciated.
    jj
    Also if anyone would happen to know if there is a way to bypass the two email prompts and choose to directly send it using the users local email client would help or maybe its impossible.

    Button2.event__click.submit.target ="mailto:xxxxx.com?subject=FORM Form Form for " + topmostSubform.firstName.value;
    Can i use rawValue or value like this? Right after i put anything after those quotation marks that aren't more quotatin marks my button stops workin.

  • How to insert field from form into subject line of email

    I have a form:
    http://www.mcw.edu/FileLibrary/Groups/HMGC/Forms/HIPAAForms/HumanSequencingTertiaryAnalysi .pdf
    and I would like to have the name of the person fill in automatically in the subject line.  Right now when the email button is clicked the subject line reads: "Submitted Human Sequencing Tertiary Analysis Submission Form."  Once the form is filled out, I would like the subject line to read: "[PI-Name] - Submitted Human Sequencing Tertiary Analysis Submission Form,"  (as highlighted below)
    event.target.submitForm({cURL:"mailto:?subject=[PI-Name] - Submitted Human Sequencing Tertiary Analysis Submission Form&body=Please find attached the completed Human Sequencing Tertiary Analysis Submission Form.",cSubmitAs:"PDF",cCharset:"utf-8"});
    I read the other discussion on this, but it didn't seem to pertain to me, or I just couldn't figure it out.  Anyone have any ideas?
    Thanks, Anne

    Hi Anne,
    This has come up several times on the forum. Most recently here, with links to examples and descriptions as to how it works: http://forums.adobe.com/message/4183125#4183125.
    Hope that helps,
    Niall

  • Importing video from Canon DSLR into time line in Premiere elements 10

    When I import video from the media files in premiere elements 10 on to the Time line,I get a message saying that the video is not a suitable format and do I want to change it to a suitable format or leave it as it is.If I go to change it then the video does not display on the editing monitor. How do I get round this?

    You're right it should work .... but in practice not always.
    You have the latest and greatest mac laptop but your camcorder is frankly a bit dated. So my suggestion is to give it the signal that it wants.
    You might want to try this little puppy:
    http://www.newegg.com/Product/Product.aspx?Item=N82E16812191015&nmmc=OTC-Froogle&cm_mmc=OTC-Froogle-_-Adaptersand+gender+changers-_-SIIG+Inc--12191015
    along with a standard 6 pin to 4 pin FW 400 cable. It might be choking on the faster FW 800. This is just a guess though.

  • 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>

  • Add Text From Multiple Fields Into One

    I'm creating a form in Acrobat 9 that lets you fill in information for four cars. For each of the four cars, there is a text box for Manufacturer, Model, and Year. I have the boxes labeled Manuf1, Mod1, Year1, Manuf2, Mod2, etc.
    Then I two other text boxes called Text1 and Text2. In Text1 I want all the manufacturers listed together( example: Ford, Chevy, BMW) and the same thing for the models in Text2. What would be even better would be if in Text1 and Text2 the names could be seperated with "or".
    Is there a javascript that can do this and not repeat a name (if, for example, the first two cars were both Ford, the third was BMW and the fourth was Chevy, I want Text1 to display: Ford or BMW or Chevy, not: Ford or Ford or BMW or Chevy)?
    Thank you for the help!

    The code sample you provided is using AcroForm scripting and will not work in this form. There is another post similar to this one...have a look at this one it might help you out. It is doing the opposite of what you want but the concept of the loop and how each field is addressed inside ofthe loop is what you wil need.
    http://forums.adobe.com/message/2954517#2954517
    Paul

  • Importing text from word.doc into iweb

    This results in a graphic which cannot be updated. iWeb help suggests
    Identify items that will be converted to graphics when published:
    Choose iWeb > Preferences.
    Select “Show text imaging indicator.”
    iWeb> Prefs Click on 'Show text imaging indicator' but no change once I have done so. The text still appears as a graphic unable to be ammended.
    Any suggestions? Or is this something to do with Lion?

    Word is wordprocessor. iWeb is an application to create webpages with.
    Copy/pasting formatted text always has unexpected results.
    To overcome that, save your Word document as a html file.
    Open it in a browser and then copy/paste the text.
    iWeb will retain the formatting.
    And Lion is an operating system. Just like a Mercedes is a car. Neither has anything to do with your problem.

  • Copy text from multiple fields to one field

    I would like to copy text from multiple fields into one field. Each of these smaller fields will only be allowed to have one character. The larger field will not be able to be edited.
    So far, I have thought of creating a naming heirarchy for these fields. I was going to then call upon the array of the parent and set the value of the parent to equal this array.
    var parent = this.getField("everything");
    var array = everything.getArray();
    var v;
    for(parent=0; parent<array.length; parent++)
    v = a + " " + v;               //Im guessing this line is incorrect
    parent.value = a;
    Any suggestions? or a better way of doing this.
    Thanks

    The code sample you provided is using AcroForm scripting and will not work in this form. There is another post similar to this one...have a look at this one it might help you out. It is doing the opposite of what you want but the concept of the loop and how each field is addressed inside ofthe loop is what you wil need.
    http://forums.adobe.com/message/2954517#2954517
    Paul

  • Selecting and importing text from Word

    Hi..
    I am interested in importing text from Microsoft Word into labview.
    The text will be identified by a particular 'style'. I have seen examples of reading text marked by 'bookmarks' however this doesn't appear to be sufficient or flexible enough for this application.
    I have tried adapting the 'bookmark' code (using different property/invoke nodes) but can't seem to find something that works in a similar way.
    Just wondering if anyone has already tried something similar.
    Any help is much appreciated.
    Regards,
    Mike
    (Labview 8.2.1 + Report Generation Toolkits)

    Hi Mark,
    The plan was to be able to sift through text in a Word document for blocks of text that match a particular 'style' (determined by us) and import the text into Labview to populate VI descriptions/free labels etc.
    I have adapted some code I have found to be able to cycle through table rows/columns and be able to match text/string patterns, however matching the 'style' property should make this operation a little cleaner or perhaps give us more control over what strings are matched.
    Mike

  • Importing text from word into indesign3

    I am importing text from a word document that has lots of footnotes in it into an indesign3 file  - I need to keep some of the formatting from the word document i.e italics and tabs however I need to be able to edit and reposition the 'word' footnotes within indesign - I don't seem to be able to do this without turning off the footnotes editing completely before importing? Is there a way around this?

    Word is wordprocessor. iWeb is an application to create webpages with.
    Copy/pasting formatted text always has unexpected results.
    To overcome that, save your Word document as a html file.
    Open it in a browser and then copy/paste the text.
    iWeb will retain the formatting.
    And Lion is an operating system. Just like a Mercedes is a car. Neither has anything to do with your problem.

  • Change subject line of email when submitting a form using Acrobat X Pro

    I have created an interactive PDF in Acrobat X PRO with a submit a form button. Everything works fine all the way through distribution except that I need the Subject Line of the submitted form when attached to an email to read "Form Returned: File Name" rather than "Submitting Completed Form". All of my past forms had the "Form Returned: File Name" subject line automatically...did something change and is it possible to change the subject line? Any help would be much appreciated.

    Thank you for your reply. I had actually come across that form on multiple occasions during my research. Looks like I need the doc.mailDoc() function, but there isn't an example of the code. Looking in other places I have tried a few things unsuccessfully. I did find this, which I thought would be even better than Form Returned: File Name in the subject line...actually taking information from fields in the form:
    // Build the subject line text from several fields form fields
    var subj_text = getField("text1").valueAsString;
    subj_text += getField("text2").valueAsString;
    subj_text += getField("text3").valueAsString;
    // Send the email
    mailDoc({
        cTo: "[email protected]",
        cSubject: subj_text,
        cMsg: "Body of email message goes here."
    I entered the script(adding in my own information for the email, body and subject line) by adding an action to the button to run the java script but it did not work. Any ideas??

  • Import data from SQL Server into MS Word document for Mail Merge purpose ?

    Hi,
    Is it possible to import contacts from SQL Server into MS Word for mail merge purpose or if retrieving data from MS Excel can we update the data in MS Excel sheet without opening it ?
    Note: Remember when you open a word document already set up for mail merge, asks you to run the query to return all records from the excel sheet it is connected to.
    Khurram

    Word and the current data source dialog do not really give you any help with that.
    You either have to be able to create a View in SQL Server that performs the query you need, then connect to that, or you have to be able to create the correct query manually (or perhaps using some other query tool that can help you), then use VBA to connect
    using that query. 
    For example, if you have been through the connection process once (connecting to a single table) then you will have a .odc (Office Data Connection file) which has the info. needed to connect to the correct server and database. It's a text file with some
    HTML and XML inside. You can copy/rename it. Let's say it is called "c:\a\myodc.odc" Then in VBA you can use something like
    ActiveDocument.OpenDataSource Name:="c:\a\myodc.odc, _
    SQLStatement:="put your SQL statement in here, and if it is long,...", _
    SQLStatement1:="put the second part in here"
    You get a maximum of either 255 or around 511 characters in the SQL statement, and Word tends to impose some syntax requirements that Transact-SQL does not, so e.g. you may need to quote all your table names.
    You can also se an empty .odc file and provide connection info. in the COnnection:= parameter in OpenDataSource.
    As background, until Word 2000, by default you would use MS Query to create your SQL query, and MS Query does have facilities that can help you build your query (a bit like the ones in MS Access). That may still be possible (it is a bit harder to find the MS
    Query option now, and I am not sure it works with the latest versions of Word). MS Query only works for ODBC queries, and they do not always work correctly when you actually issue the query using ODBC from Word, because of a Word problem to do with Unicode
    fields in SQL Server. But you could probably still use MS Query to help you construct your SQL. (It's probably easier to do that in Excel, though).
    Peter Jamieson

  • Importing Text From A .txt File

    Hey guys,
    I'm looking for a way to import text from a .txt file but I'm totally lost. If someone could point me in the right direction that would be awesome

    Hi Prails
    This script is basically what you asked:
    #target illustrator
    #targetengine main
    function copyText(){
        var textFile = File.openDialog ("Select the file");
        if (! textFile.exists || app.documents.length==0){
            return;
        textFile.open("r");
        var txtContent = textFile.read();
        textFile.close();
        var doc = app.activeDocument;
        var textItem = doc.textFrames.add();
        textItem.contents = txtContent   
    copyText ();
    Basically what you need to do is declare the text file, open it, read the content and close it. Then, you create a new text item in the Illustrator document and write the content once catched into the text item.
    You could continue to work with the variable "textItem" in my example script if you want to set properties like the size, color of the text, position and so on. Also, if you want, replace the first line of the function var textFile = new File ("~/Desktop/Test.txt"); by var textFile = File.openDialog ("Select the file"); so the scripts opens a dialog to ask you the file you want the copy the content.
    Hope to be helped
    Best Regards
    Gustavo
    Message was edited by: Gustavo Del Vechio

  • How can I remove ASCII text from a field when I use it in a query

    How can I remove ASCII text from a field when I use it in a query?
    I am running a select statement on a table that appears to have ASCII text in some of the fields. If I use these fields in the where statement like the code below nothing returns:
    SELECT FIELD1 FROM TABLE1 WHERE FIELD1 IS NULL
    But the field looks empty if I do a straight select without the where clause. Additionally, one of the fields has text but appears to be padded out with ASCII text, which I need to strip out before I can use this field in a where or join statement. I have tried using a trim, ltrim, rtrim, to_char, nvl, decode and nothing works. When I use excel to run the same query it looks as if these ASCII fields are boxes.
    I have asked our DBA team to see what they can do to prevent these from going into the table, but in the mean time I still need to run this report.
    Do you have any suggestions?

    Can you provide an example? I've been trying (for
    example) "select translate(' test one', ascii(' '),
    'X') from dual" with no luck.
    Thank you.To replace space, you should query like this:
    select translate(' test one', chr(32), 'X') from dual instead of select translate(' test one', ascii(' '), 'X') from dual Thanks,
    Dharmesh Patel

  • Wrapping of the text in form field text box

    Hi,
    We are using adobe acrobat x pro 10.1.0 licensed versions
    Issue
    In a pdf file we have text boxes (Form fields), we are populating it dynamically,We have the issue in wrapping of the text
    I had set multi line property (in a line we can accommodate 39 characters, total there are 49 characters)
    The last character is getting displayed half, Please find the issue as in line image
    Requirement
    We need to wrap the text and display it correctly, please find the requirement as inline image
    Please let me know your valuable suggestions
    Regards,
    S.N.Prasad

    You'll want to ask in the Acrobat forum: http://forums.adobe.com/community/acrobat/acrobat_windows

Maybe you are looking for

  • ? parameters & JSTreeBrowser

    I have a JSTreeBrowser based on a view that is self-referential. It works fine. But I need to restrict the rows that appear using a bind variable (?). I put the ? in the View object's where clause, set Use ?Type parameters and compiled. The View Obje

  • BDC for ME21 Po create

    Hi ALL, Iam Creating BDC Program bu using ME21 for Uploading PO. Iam getting error at Income term2 in the Second Screen of ME21. Iam Passing this value through Excel Sheet But event then it is not picking. When i check in debugging the value of incom

  • Vodafone Sure Signal and SKY Fibre Optic Broadband

     Please help, I have had no Mobile Phone signal for over 6 weeks on four mobile phones at home (which we pay over £150 a month for!) including my two teenage daughters phones who are beside themselves!!My Vodafone sure signal box was working fine (fo

  • Calculate taxes by treating the payments separately

    Hello folks, I'm opening this thread in behalf of another people. He have a situation where he wants to prepay vacation for an employee and run it together with his regular hours during regular payroll run but the taxes being deducted are way too hig

  • Bird's Eye View enabled by default

    Hi all, is there a way to have the bird's eye view enabled by default in the impact/lineage? I need to enable it everytime i do a impact/lineage analyse. It takes to much time before it pops up. I know it's something not very important :) But it's an