Email form created in Acrobat 9, custom subject line and content

I'm revisiting a form I created about a year back, and I can't remember how I got a javascript to work.
What I want is for the user to click on an "Email" button, which will open their email program and create a new message, with the subject line filled out from one of the form fields, and then will have specified text in the body, as well as attaching the document and sending it to multiple email addresses.
I have a javascript that I thought worked, but I keep getting error messages on it when I try to test it out.
The script I'm currently trying to make work is:
// This is the form return e-mail. Its hardcoded
// so that the form is always returned to the same address
// Change address on your form
var cToAddr = "[email protected]; [email protected]";
// First, get the client CC e-mail address
var cCCAddr = this.getField("Teacheremail").value;
// Set the subject and body text for the e-mail message
var cSubLine = this.getField("CourseNumber").value + " corrections form submitted by "
+ this.getField("TeacherName").value;
var cBody = "\nThank you for submitting your form.\n" +
               "Save the mail attachment for your own records.\n" +
               "Do NOT worry if the form appears blank in your email message.";
// Send the form data as an PDF attachment on an e-mail
this.mailDoc({bUI: true, cTo: cToAddr, cCc: cCCAddr,
  cSubject: cSubLine, cMsg: cBody});
What am I doing wrong?

forgot to add
This is the error message, but there is a correct email listed in the Teacheremail field, so I don't know why it says it's "null."
this.getField("Teacheremail") is null
7:AcroForm:Email:Annot1:MouseUp:Action1
TypeError: this.getField("Teacheremail") is null
7:AcroForm:Email:Annot1:MouseUp:Action1

Similar Messages

  • Send mail through dynamic action, but the subject line and content is blank

    Hi all,
    I'm facing one problem on sending mail throught dynamic action.
    Whenever a new employee is hired, the system will trigger a mail to the administrator.
    The mail can successfully reach the email address. But the title and the content of the mail are missing. I can receive an email with a PDF attchment. But when I open this PDF file, it's blank inside.
    In t-code "SO10", I created a new mail text with name of Z_MAIL, for my mail, insteading of using the SAP standard one.
    When I using the SAP standard mail text, it works and I can see the content. But even I copy and paste the exact the content of the standard one to my own new mail text, it will not work.
    And I have to use my own customized mail text. So, is there any one knows about this issue? Any more setting I should do? Or is there some tricks?

    Hi,
       I feel that something will be misiing in the coding.Even i faced the same problem earlier.for me it was text file as an attachment ,file was receiving but no data...the problem was i forget to add one option in objpack-head.
       R u using the FM - SO_NEW_DOCUMENT_ATT_SEND_API1??
    If so pls C the below codes for text file as an attachment.
    DATA: objpack LIKE sopcklsti1 OCCURS  2 WITH HEADER LINE.
      DATA: objhead LIKE solisti1   OCCURS  1 WITH HEADER LINE.
      DATA: objbin  LIKE solisti1   OCCURS 10 WITH HEADER LINE.
      DATA: objtxt  LIKE solisti1   OCCURS 10 WITH HEADER LINE.
      DATA: reclist LIKE somlreci1  OCCURS  5 WITH HEADER LINE.
      DATA: doc_chng LIKE sodocchgi1.
      DATA: tab_lines LIKE sy-tabix.
    Creating the document to be sent
      doc_chng-obj_name = 'MESSAGE'.
      doc_chng-obj_descr = 'ZHRI_GARN_EPC_COMM'.
      objtxt = 'Program ZHRI_GARN_EPC_COMM has been executed successfully'.
      APPEND objtxt.
      objtxt = 'Error records passed to BDC session XPHRGARN01'.
      APPEND objtxt.
      DESCRIBE TABLE objtxt LINES tab_lines.
      READ TABLE objtxt INDEX tab_lines.
      doc_chng-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
    Creating the entry for the compressed document
      CLEAR objpack-transf_bin.
      objpack-head_start = 1.
      objpack-head_num   = 0.
      objpack-body_start = 1.
      objpack-body_num   = tab_lines.
      objpack-doc_type   = 'RAW'.
      APPEND objpack.
    Entering names in the distribution list
      LOOP AT se_tech.
        reclist-receiver = se_tech-low.
        reclist-rec_type = 'U'.
        APPEND reclist.
      ENDLOOP.
    Sending the document
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = doc_chng
          put_in_outbox              = 'X'
          commit_work                = 'X'
        TABLES
          packing_list               = objpack
          object_header              = objhead
          contents_bin               = objbin
          contents_txt               = objtxt
          receivers                  = reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          operation_no_authorization = 4
          OTHERS                     = 99.
    Hope this will help u.
    Regards,
    Manoj.

  • How do I create custom subject lines for form responses?

    We want our forms to be able to generate a custom subject line--each time someone puts in a request. Gmail threads everything together with the same subject line so when we get e-mail notifications when someone submits a form we often miss these because multiple notifications get threaded together. This could be solved if we can customize the headlines. Do you know how to do this?

    JRGENTRY
    Welcome to the HP Community Forum.
    The Avery labels and business cards with which I have had experience come on standard 8.5 X 11 inch sheets.  Of course, there may well be something out there about which I am unaware.
    The following may be helpful:
    Printing Labels_Business-Cards_Cards
    Click the Kudos Thumbs-Up to say Thank You!
    And...Click Accept as Solution when my Answer provides a Fix or Workaround!
    I am pleased to provide assistance on behalf of HP. I do not work for HP. 
    Kind Regards,
    Dragon-Fur

  • What levels of Acrobat are needed to use forms created in Acrobat Pro 9?

    What levels of Acrobat are needed to use forms created in Acrobat Pro 9? I want to use my form as a job ticket but want to know what levels of adobe reader are needed for the end users to be able to fill out & submit the forms without any problems.

    Reader 7 and higher should be able to fill out forms and submit if the pdf format allows Reader 7 to fill out the form. However, without problems is a different issue. Submission of forms via email is ALWAYS a problem. It is always better to post the form on a website and have the form filled out on the web and have the data stored or sent to a database for further action.

  • How do I create a dropdown in the Subject Line field while sending emails.

    How do I create a dropdown in the Subject Line field while sending emails as I send more than 300 emails with the same subject line everyday.

    Which webmail service do you use, gmail may have problems currently see thread
    '' Subject autofill feature stopped working in gmail for new subjects only - and I'm not the only one - help! {[https://support.mozilla.com/en-US/questions/793610 link]]''
    For general information see [[form autocomplete]] and [[Form autocomplete entries are not saved ]]

  • Are Distributed Forms created in Acrobat XI Pro compatible with Response Forms in Acrobat X Pro?

    I want to be able to use distributed forms (created in Acrobat XI Pro) that I have received back through email with Acrobat X Pro.  That is, I want to be able to import the form information that is being sent back to me into a response form in Acrobat X Pro. Is this kind of "forward-compatible" issue possible? 
    Or, since I created the distributed forms in Acrobat XI Pro, can I only import data from those forms in an appropriate response from in Acrobat XI Pro?
    Thanks!

    The distribution technique for email, network folder, or internal server haven't changed between Acrobat X and XI so you should be able to do this; however, it won't be managed through Tracker because you're distributing the form through different programs.

  • Adobe forms - using form field data to populate subject line and body of email

    HI
    I have created a form that can be submitted by e-mail. I would like the data entered into the form to populate the subject line and body of the email but have no idea of how to script this. I would be grateful if someone could have a look at the form and see how I can achieve this.
    For example
    subject line: Travel and accommodation form [Name] [EventName] [StartDate]
    Body:
    Please open the attached travel and accommodation for for [Name] who will be attending [EventName] on the [Start Date]
    Here is the code for my button:
    <field name="Submit" y="219.075mm" x="139.7mm" w="34.925mm" h="6mm">
                <ui>
                   <button/>
                </ui>
                <font typeface="Myriad Pro"/>
                <caption>
                   <value>
                      <text>Submit</text>
                   </value>
                   <para vAlign="middle" hAlign="center"/>
                   <font typeface="Myriad Pro"/>
                </caption>
                <border hand="right">
                   <?templateDesigner StyleID apbx2?>
                   <edge stroke="raised"/>
                   <fill>
                      <color value="212,208,200"/>
                   </fill>
                </border>
                <bind match="none"/>
                <event activity="click">
                   <submit format="pdf" textEncoding="UTF-16" target=mailto:[email protected] xdpContent="pdf datasets xfdf"/>
                </event>
             </field>
    Please excuse my ignorance as not competent with XML so any help would be gratefully received. Have already tried some methods posted on here already but not helped.

    You should post this to the LiveCycle Designer forum here if you haven't already.

  • I want to let Reader users add a photo to a form created in Acrobat 9.

    I have a form created in Acrobat 9. I want to allow Acrobat Reader 11 users to add a photo. Can I bring the form into Live Cycle Designer to do so, or will that cause conflicts with the Acrobat form?

    In that case you can't do it with an Acrobat form. Moving to an LCD form is not a mere technicality. The two technologies are very different from one another and are not compatible with one another. You should think and test it carefully before making such a move, and make sure to keep backups of your Acrobat forms.

  • I am currently using FormsCentral to distribute a form created in Acrobat. I need to add an option to one of the drop down fields but do not want to re-distribute the form due to reporting purposes. How can I do this?

       I am currently using FormsCentral to distribute a form created in Acrobat. I need to add an option to one of the drop down fields but do not want to re-distribute the form due to reporting purposes. How can I do this?

    You can open the form in Acrobat, select "File > Save a Copy", open the copy you just saved (it doesn't happen automatically), edit the dropdown to add the new item, save as a new file, and then Reader-enable the file by selecting: File > Save As Other > Reader Extended PDF > Enable More Tools. The resulting PDF should work with FormsCentral just like the original.

  • Cannot save data in form create in acrobat

    We have a form created in Acrobat 9 pro and it is setup so that it can be filled out and saved in Adobe Reader 11. We use this form on our small business domain and most of the time the form will save but lately we see an error that tells us very little just "Unexpected Error Occurred" and then no matter what you do you cannot save the form data. It's setup with a master form, then they save it individually by a new name. When this error occurs we just can't save it, nor can we print it! It's as if the data isn't there any more. I'm not sure what is happening but was wondering if anyone has had any experience with this.

    Hi,
    First of all, check the PDF producer of your form. Open Form in Acrobat -> Go to File -> Properties -> Look for PDF Producer in "Description" (Tab).
    1. If your form is created by Acrobat then Reader XI should be able to save the form.
    2. If it is created by LC Designer then you need extend the rights for Reader in the form.
    For Acrobat 9 Pro --
    Go to Advanced > Extended Features in Adobe Reader
    Regards,
    Anoop

  • I want to change subject line and save emails from others

    For instance my client may respond to an email question and I want to change the subject line because it includes an answer such as clients address, but I cannot figure out how to change the subject line and save it to my file folder I have for them.

    This add on claims to do that.
    https://addons.mozilla.org/en-US/thunderbird/addon/edit-email-subject/?src=ss
    There might be others but that is the first one that came up. I have never used it so I cannot speak for how well it works.

  • Reset Password email:  subject line and body

    For an email that is sent from this page:
    Home>Manage Workspaces>Manage Developers and Users>Reset Password
    Question: Where/how can I change the subject line and message-body contents for this email

    I would like to customize the subject line and body. for example...
    Current Email:
    Subject: Your password has been changed.
    Body: Account password changed for user CXXXXX.
    I would like to modify to:
    Subject: Your 'Oracle Application Express' password has been changed.
    Body: 'Oracle Application Express' Account password changed for user CXXXXX

  • FORMS IN go daddy - email forms, anyone know whats happening with c-panel and adobe email forms...

    FORMS IN go daddy - email forms, anyone know whats happening with c-panel and adobe email forms...

    Hi,
    Can you please provide the URL of your website ?  And also the email address to which you are trying to send the form.
    Regards,
    Rohit Nair

  • Need help getting form created in Acrobat X to email form data back to me

    The form I created seems to work from my computer that has Acrobat X installed but when I try to submit the PDF with a computer that only has Reader installed it says "This Operation is Prohibited."
    The end users of this form will most likely only have Adobe Reader, how do I set up my form so that it is compatible with Reader?
    Thanks for your help!

    You have 2 choices and one depends on your satisfying the limits of the EULA (no more than 500 submissions basically). For the latter, you have the entire form submitted and you have to enable Reader Rights in Acrobat. On this machine (AA8), it is under the Advanced menu, not sure with AAX (I think they moved it). For the other choice that does not have the license limit, you do not activate Reader Rights, but have the data submitted as an FDF file (XML if you are using Designer, but then Designer questions should really go to the LiveCycle forum). When you receive the FDF or XML file, you simply go to the forms menu in Acrobat > Manage Data, and import the data. The FDF Toolkit also allows separate manipulation of data files.

  • Cannot create a Response File in Reader X from form created in Acrobat Pro 9

    I created a form in Adobe Acrobat Pro 9. I distributed the form using option "Manually collect responses in my email inbox" and "Save a local copy and manually send it later". When I send that form and get a response, I open it in Adobe Reader X but I do not get the pop-up option to save to a Response File. I do get that option to save to the response file if I open the file with Adobe Reader 9. Has anyone else seen this problem and is there a solution?

    I figured a way around this in case anyone has the same problem in the future. I just opened Acrobat Pro X, clicked combine files into PDF, selected the file I wanted, saved the "binder" as PDF then saved another version as Reader Extended PDF. I think this helped because it essentially creaded a whole new PDF with the old PDF in it and getting rid of whater hashes or document properties in the last one that wouldn't allow it to work in Reader. Opens perfectly on other computers.

Maybe you are looking for

  • Reinstalled windows. Now can;t see how to get Photoshop, Bridge and lightroom back

    After a complete reinstall of my system, I just came to the Adobe site wanting to download my products and can;t see how to do it. Might just be missing the obvious, but I dunno...any ideas? Where do I go to download the Creative Cloud app, and from

  • Image cannot be displayed (as htmltext) when published for Air, android and iphone

    Hi, I am using Adobe Flash CS5.5 (AS3) and am building an online rss reader which loads a rss(xml) feed as htmlText containing title, description (with html formatting, linkage and image). My rss format is roughly based on the online sample found at 

  • Systems Preferences gone.

    I hope someone can help me out. When I go to open my Systems Preferences under the apple icon nothing appears. I used the finder to try to locate it and nothing was found. Is there anything that I can do to bring it back? Thanks for any help. M

  • Security related report in Report Web Part

    Hi, I have a document library hosting 10 reports with item level security. I want to set up only one page with ReportServer Webpart to display one of the reports out of the library according to the report security setting (dynamically). As I can only

  • Oracle Backup to the external medium from DB13 via FTP

    Hi oracle experts!  I have difficulty by setting up the the backup to the remote directory (on Unix Server) via FTP from DB13 on Windows (Enterprise Server 64 bit). The parameters I have set up are in initDBSID.sap: backup_dev_type = stage stage_root