Submit PDF via Button Click into Email

event.target.submitForm({cURL:"mailto:[email protected]" + "?subject=" + subjectext + "&body=" + bodytext + "&cc=" + ccemail address ,cSubmitAs:"PDF",cCharset:"utf-8"});
cURL:"mailto:"
can also write cURL:"mailto:" + variable   (i.e.= field containing email address)
"?subject" = not sure what this means. Seems to be some sort of signal the subject is coming next
subjectext = variable containing text you want for the subject of the email
"&body" = not sure what this means. Seems to be some sort of signal the body text is coming next.
subjectext = variable containing text you want for the body of the email i.e. var bodytext = "\n" + "\n" + "Thank you for........"
"&cc=" not sure what this means. Seems to be some sort of signal the carbon copy email address is coming next.
ccemail address = variable containing email address you want to send the email to as a cc
cSubmitAs:"PDF" = option to send as differing formats
cCharset:"utf-8" = unsure
From the Book:
Creating Dynamic Forms with Adobe® LiveCycle® Designer
For this to work, one of the following must be true:
Your form fillers must have Acrobat.
Your form must be Reader extended.
// put the code in the click event of a regular button var mail; var address = email.rawValue; //email is a text field var sub = subject.rawValue;  mail = "mailto: " + address + "?subject=" + sub; event.target.submitForm({ cURL: mail, bEmpty: true, cSubmitAs: "PDF", cCharset: "utf-8" });
The submitForm function takes the following four parameters.
The email address and subject
A Boolean true to imply that all fields are posted
The attachment file format (XML, XDP, or PDF)
The character encoding
Hope this helps the next person searching for this info.

Thank you.  I finally got it to work!
Sarah T. Love
Grants & Contracts Director
California Pacific Medical Center Research Institute
475 Brannan Street, Suite 220
San Francisco, CA   94107
415-601-2555 cell phone
415-600-1702 phone
415-600-1681 fax
Website:  http://www.cpmc.org/professionals/research/grants/index.html

Similar Messages

  • Pdf crashes when clicking into the 3d&multi media

    hello forumers.
    when i go into my preferences my pdf crashes when clicking into the 3d & multimedia option,anyone elses acrobat crashes as well?

    hello micheal im on a pc windows 7 and have acrobat acrobat pro.

  • Submit PDF via email custom button

    I followed the instructions in LiveCycle guide but it is not working completely.  I set up a custom button and followed the instructions for Submitting a pdf via email.  When I click on the submit button, it pulls the pdf into an email  but has left off the email address and the subject. 
    The format I used was mailto:[email protected]?subject=blah blah blah.

    Thank you.  I finally got it to work!
    Sarah T. Love
    Grants & Contracts Director
    California Pacific Medical Center Research Institute
    475 Brannan Street, Suite 220
    San Francisco, CA   94107
    415-601-2555 cell phone
    415-600-1702 phone
    415-600-1681 fax
    Website:  http://www.cpmc.org/professionals/research/grants/index.html

  • Addeventlistener via button click ?

    Hello, is it possible to add an eventlistener via a button click ?
    eg.
    <mx:Button  click="myObejct.addEventListener(MouseEvent.CLICK, myFunction(event))"/>
    This does not work for me, but I think it should be possible with a bit of fine-tuning ?
    thanks for any help.

    Yes you can
    <mx:Button  click="myObejct.addEventListener(MouseEvent.CLICK, myFunction)"

  • Smartform as PDF On Button Click

    Hello Everyone,
    I need to display a smartform as PDF on click of a button.
    I have done the conversion using CONVERT_OTF. And then,
    CREATE OBJECT cached_response
    EXPORTING add_c_msg = 1.
    *Start display PDF
          cached_response->set_header_field( name  = 'content-type'
                                      value = 'application/pdf' ).
    some Browsers have caching problems when loading PDF format
          cached_response->set_header_field(
                             name  = 'cache-control'
                             value = 'max-age=0' ).
    start PDF viewer either in the Browser or as a separate window
           cached_response->set_header_field(
                               name  = 'content-disposition'
                               value = 'attachment; filename=form.pdf' ).
    finally display PDF format in Browser
          l_pdf_len = xstrlen( l_pdf_xstring ).
         cached_response->set_data( data   = l_pdf_xstring
                              length = l_pdf_len ).
    DATA: OBJ1 TYPE REF TO CL_BSP_NAVIGATION,
                lr_runtime type ref to cl_bsp_runtime.
    CREATE OBJECT OBJ1
      EXPORTING
        RUNTIME = lr_runtime.
    call method OBJ1->RESPONSE_COMPLETE .
    Is this correct, did I miss anything?
    I get a blank screen when I click on the button.
    I know this was asked many times , checked those posts but no help.
    Looking forward to your input.
    Regards,
    Mohit Joshi

    Mohit,
    did you check the smartform itself?
    is it complete executed?
    can you test it via the FM?
    most of the times when the url shows an empty page is that or the SMARTFORM is not executed correctly or the pdf is not opened automatically.
    KR,
    Micha
    have a look at my coding:
         CALL FUNCTION 'SCMS_FTEXT_TO_BINARY'
           EXPORTING
             input_length    = ls_len
             append_to_table = 'X'
           IMPORTING
             output_length   = ls_len
           TABLES
             ftext_tab       = lt_objcont
             binary_tab      = lt_contents
           EXCEPTIONS
             failed          = 1
             OTHERS          = 2.
         lv_file_size = ls_len.
         lv_contenttype = 'text/plain'.                         "#EC NOTEXT
       ELSE.
         lv_file_size = xwa_len.
         lv_contenttype = 'application/pdf'.                    "#EC NOTEXT
         CONCATENATE ls_guid_str '.pdf' INTO lv_filename.
         lv_file_name = lv_filename.
         server->response->append_data(
                             data   = xwa
                             length = xwa_len ).
         CLEAR lt_contents. REFRESH lt_contents.
       ENDIF.
       CONCATENATE 'inline; filename=' lv_filename
         INTO lv_contentdisposition.
       CALL METHOD server->response->set_header_field
         EXPORTING
           name  = 'content-disposition'
           value = lv_contentdisposition.
       CALL METHOD server->response->set_header_field
         EXPORTING
           name  = 'content-type'
           value = lv_contenttype.
       CALL METHOD server->response->set_header_field
         EXPORTING
           name  = 'content-filename'
           value = lv_filename.
      Content Tabelle (Byte Arrays) rausschreiben
       lv_chunksize = 1022.
       LOOP AT lt_contents INTO ls_contents.
         MOVE ls_contents-line TO xwa.
         xwa_len = lv_file_size - ( lv_chunksize * ( sy-tabix - 1 ) ).
         IF xwa_len >= lv_chunksize.
           xwa_len = lv_chunksize.
         ENDIF.
         server->response->append_data( data   = xwa
                             length = xwa_len ).
       ENDLOOP.
      Response beenden
       server->response->delete_header_field(
                 name = 'Cache-Control' ).                      "#EC NOTEXT
       server->response->delete_header_field(
                 name = 'Expires' ).                            "#EC NOTEXT
    Edited by: Micha Van Nijen on May 3, 2011 12:39 PM

  • Need to print a pdf on button click

    Hi,
    I need to do something similiar to what the code is doing below, except I need to create a button that when clicked will print a pdf. Not sure if it is better(easier) to add the pdf to my library and print that way or just upload the pdf to the server and print that.
    anyway here is the code I have sofar. Not sure exavtly what I need to change/modify.
    package com.wiley.as3bible.printing {
        import flash.display.Sprite;
        import flash.text.TextField;
        import flash.text.TextFieldAutoSize;
        import flash.net.URLLoader;
        import flash.net.URLRequest;
        import flash.events.Event;
        import flash.printing.PrintJob;
        import flash.display.SimpleButton;
        public class Printing extends Sprite {
            private var _printableContent:Sprite;
            private var _textField:TextField;
            private var _loader:URLLoader;
            public function Printing() {
                //Load the text from a text file
                _loader = new URLLoader();
                _loader.load(new URLRequest("http://www.rightactionscript.com/samplefiles/lorem_ipsum.txt"));
                _loader.addEventListener(Event.COMPLETE, completeHandler);
                //Create a multiline text field that autosizes.
                _textField = new TextField();
                _textField.width = 400;
                _textField.multiline = true;
                _textField.wordWrap = true;
                _textField.autoSize = TextFieldAutoSize.LEFT;
                //Create a sprite container for the text field,
                //and add the text field to it.
                _printableContent = new Sprite();
                addChild(_printableContent);
                _printableContent.addChild(_textField);
            //When the text loads add it to the text field and  then print the text
            private function completeHandler(event:Event):void {
                _textField.text = _loader.data;
                var printJob:PrintJob = new PrintJob();
                if (printJob.start()) {
                    printJob.addPage(_printableContent);
                    printJob.send();
    I know the button code should be something like:
    Printbtn.addEventListener(MouseEvent.CLICK,startPrint);
    thanks in advance for any help.

    I see what you are saying. I think I am going about this the wrong way. Really all I need is to upload the pdf to the server, since it is already created, and then in AS3 create a link that will be clickable and will download the pdf, in which case they can just print the download. I know how to do this in HTML, but not AS. Basically, it needs to be the equivalent of <a href="PathtoPDF_File">Click to download file</a>.
    also I have a message window already coded, and within this message window is where I need to add the link:
    package exam {
        import flash.display.*;
        import flash.events.*;
        import flash.text.*;
        //this class is used to create a "pop-up" window to ask users to confirm they want to exit (after clicking
        //exit exam button), and then to report back on how the submission went, and offer to resend if necessary
        public class MessageWindow extends Sprite {
            //VARIABLES
            private var feedback:TextField;
            private var confirm:YesBtn;
            private var quit:CancelBtn;
            private var resend:ResendBtn;
            public function MessageWindow (type:String, unanswered:Number=0, score:Number=0) {
                var bg:Shape = new Shape();
                bg.graphics.beginFill(0xffffff,1);
                bg.graphics.lineStyle(3,0x6fc9f4);
                bg.graphics.lineTo(400,0);
                bg.graphics.lineTo(400,250);
                bg.graphics.lineTo(0,250);
                bg.graphics.lineTo(0,0);
                bg.graphics.endFill();
                addChild(bg);
                var format:TextFormat = new TextFormat();
                format.font = "Verdana";
                format.size = "22";
                format.bold = false;
                format.color = 0x464646;
                feedback = new TextField();
                feedback.width = 300;
                feedback.x = 50;
                feedback.y = 15;
                feedback.wordWrap = true;
                feedback.autoSize = TextFieldAutoSize.LEFT;
                feedback.mouseEnabled = false;
                if (type == "confirm") {
                    feedback.text = "Are you sure you want to exit the exam?";
                    if (unanswered > 0) {
                        feedback.appendText("  You still have "+unanswered+" unanswered questions.");
                    feedback.setTextFormat(format);
                    addChild(feedback);
                    quit = new CancelBtn();
                    quit.setType("cancel");
                    quit.x = 25;
                    quit.y = this.height - (quit.height + 15);
                    addChild(quit);
                    confirm = new YesBtn();
                    confirm.setType("confirm");
                    confirm.y = quit.y;
                    confirm.x = this.width - (confirm.width + 25);
                    addChild(confirm);
                }else if (type == "success") {
                    feedback.text = "Congrats on finishing the exam!\r\nYour score is "+Math.round(score*100)+"%\r\nYou may now close the exam window.";
                    feedback.setTextFormat(format);
                    addChild(feedback);
                }else {
                    if (type == "databaseError") {
                        feedback.text = "Errors occured while saving your data.  Please retry.";
                    }else if (type == "networkError") {
                        feedback.text = "Could not contact the server.  Please make sure you are connected to the internet and try again.";
                    feedback.setTextFormat(format);
                    addChild(feedback);
                    resend = new ResendBtn();
                    resend.setType("resend");
                    resend.x = 200-(resend.width/2);
                    resend.y = this.height - (resend.height + 15);
                    addChild(resend);
    in the else if(type =="success") part in the feedback.text ="" is where I need the link to go.

  • Submitting form via button click

    Hi, i have a following code and it doesnt work and i dont know why
    <jsp:useBean id="pageinfo" class="zrna.PageInfo" scope="session"/>
    <jsp:setProperty name="pageinfo" property="*"/>
    <html>
    <head>
    <script type="text/javascript">
         function clickEvent(form,md,wrkOn)
              form.mode.value = md;
              form.workingOn.value = wrkOn;
              form.submit();
         function m(form){return true;}
    </script>     
    </head>
    <form action="index.jsp" method=get >
         <input type="hidden" name="mode" value="">
         <input type="hidden" name="workingOn" value="">
         <input type="submit" value="Add" onclick="clickEvent(this.form,'add','Student')">
         <input type="submit" value="Alter" onclick="clickEvent(this.form,'alter','Student')">
         <input type="submit" value="Done" onclick="clickEvent(this.form,'general','')">
    </form>          
    So im trying to change jsp bean properties of pageinfo thru submiting form and it doesnt work. when button is clicked the page goes blank. What am i missing?

    is this page you posted "index.jsp"?
    Not sure offhand, but could the form submit before onclick fires? If so, change them to button types, not submit types.
    The bean has those named fields? Public get/set methods?
    Does useBean have to be this?
    <jsp:useBean id="pageinfo" class="zrna.PageInfo" scope="session">
    <jsp:setProperty name="pageinfo" property="*"/>
    </jsp:useBean>

  • Download pdf with button click??

    hi again guys,
    i have a pdf in my public_html and a button on my site that links to a PDF but when i click the button it opens the PDF in a browser window,
    is there a way to  save directly to the desktop?
    without opening in a browser window or zipping the file?
    thanks Mr A

    I believe you'll need to use the FileReference class, and its download method.

  • WDURLGenerator + link to URL via Button

    hi,
    i was searching this forum about the possibilities of the  WDURLGenerator.
    I need to link to a webpage via Button-Click.
    I set up an Button and corresponding action. In this action I simply want to call an URL (nice would also be a new window.
    Now I set up:
    WDURLGenerator.getWebResourceURL("http://www.<url>.de")
    do i have to also set up something like: wdThis.wdFirePlugUrl(url) ???
    thanx for help,
    matthias

    Matthias,
    No offence, here but:
    On the main WD forum screen just type your question in search box:
    open AND window AND url
    All the rest left as default.
    The very first hit!
    VS

  • How can I embed a form on my website and set up a submit button so that when people fill out and click Submit, the filled form will be emailed to me as an attached pdf file?

    How can I embed a form on my website and set up a submit button so that when people fill out and click Submit, the filled form will be emailed to me as an attached pdf file?
    Thank you!

    Hi;
    That is not a workflow that is supported by the Adobe forms solutions at this time.
    Thanks,
    Josh

  • I have a pdf doc that I have email buttons attached to button when I go to upload it to forms central so I can add a submit button to it it enables my email buttons.

    I have a pdf doc that I have email buttons attached to button when I go to upload it to forms central so I can add a submit button to it it enables my email buttons.

    You select the printer properties and set the appropriate page size (I think there is a place to set it in PDF Maker too, but not sure). In the printer, this is equivalent to putting the proper paper in the printer.

  • Form for my visitors to fill them out and submit them via email

    Hello, I need to have several forms in my website and allow my visitors to fill them out and submit them via email, can I use FormCentral?
    This is my website:
    http://aiiav.org/cemetary/forms/
    Thank you
    Juan Pulido

    Hi;
    You could certainly use FormsCentral. 
    FormsCentral allows you to easily create forms that you can distribute either using a web form with a "Submit" button that sends the data back to FormsCentral and is available in your account for you to view and analyze, or you can also distribute the form as a PDF.  The PDF can have a FormsCentral "Submit" button that (same as with the web form) sends the data back to FormsCentral, or can be saved without a Submit button allowing you to add your own Submit button using Acrobat which could be an "Email" submit button (which would email you the form data or the entire PDF).
    If you chose "web forms" you could embed the form into your website for users to fill out right there and submit without having to send via email.  You could have links to each embedded form on your site.
    Here is an overview of FormsCentral, I'd be happy to answer any follow up questions: http://forums.adobe.com/docs/DOC-1413
    One note if you were to use PDF - your current PDF forms are set to open in the web browser.  If you used FormsCentral PDF forms you would want to have a link that downloads the PDF to the users computer so they can fill out in Adobe Acrobat or Adobe Reader, filling out in the web browser, or with any other PDF viewer does not work correctly and is not supported.  You would want to call that out on the download page to ensure users fill out in Adobe Reader.
    Thanks,
    Josh

  • Gather email from Form to submit PDF attachment.

    Hello all.
    First off, I am a Javascript noob, but am pretty good at figuring things out. This is what I am attempting to do:
    I have several forms that our office uses for tracking mileage, new employee hire stuff, etc. I'm trying to set the office up to use digital signatures, and decrease the amount of paper waste.
    I have the forms created, and at the top have two buttons, print, and Send form. On top the of the Send Form button, I have a text field where I want people to be able to put an email address in, and when they press Submit Form, it will load up their Outlook and already have that email filled in.
    I'd also like the option of using a drop down menu as well on certain forms.
    I am having trouble getting the coding right. Eventually I'd like to be able to determine the subject line and body of the email as well, but at this point I'd settle for getting it to load up outlook with the email that was typed into the form "Destination" or, as on certain forms, whatever value is selected from the drop down menu.
    I can set up a submit button to a pre-determined email easily, but I need something beyond that now.
    Thanks for any and all help!
    Regards,
    Dylan

    I think I figured it out. Here is what I use to pull the email address:
    var mailTo = this.getField("DeliveryCombo").value;
    var subject = "Mileage Report for " + this.getField("EmployeesName").value;
    var msgBody = "Here is my mileage report for you.";
    this.mailDoc();
    If you look at the var subject line, you will see that I have the first part of the subject as static (Mileage Report for ) and then I have it pull the name from the EmployeesName field to complete the rest of the subject.
    When someone clicks send, it generates and email to the email address they typed in or selected from the combo box, puts the subject line as Mileage Report for (name of employee), and generates that short part in the body. Finally, it attaches the PDF in full to the email.
    I hope this helps. Let me know if it doesn't and we'll see if we can figure something out.
    Dylan.

  • I need instructions on how to create a button that will email a pdf form to someone else on a websit

    I NEED ASSISTANCE CREATING A BUTTON THAT WILL EMAIL A PDF FORM FROM A WEBSITE TO WHOEVER THE VIEWER WANTS TO

    Just a bit more info. E-mail can be used, but has potential problems -- often related to the client machine that you have no control over. Use the data submissions (either FDF or XML) rather than the full PDF so you do not have to deal with Reader Rights and the related license issues. The FDF and XML data files are easily imported into the original form so that you see what the client sees. With those aspects in mind, just go ahead and try one. Be aware that you can add form fields using the form tools in the Advanced Editing tools, OR use the forms menu that will take you to Designer. You might want to try both to see the pros and cons. Be sure to keep such a test simple so you are not wasting time on your final form just for testing. I typically create a 1 page form that has all of the possible fields for such a test.

  • I am using Numbers app for the ipad and it has been working absolutely fine but now, when I want to email a spreadsheet as a PDF via the 'share and print' option, the file now doesn't appear as an attachment to the recipient. Any ideas please?

    I am using Numbers app for the ipad and it has been working absolutely fine but now, when I want to email a spreadsheet as a PDF via the 'share and print' option, the file now doesn't appear as an attachment to the recipient. Any ideas please?

    Hi mafiose15,
    Thanks for visiting Apple Support Communities.
    Restoring your iPod to factory settings is the best way to try and get it back to working order. You can use the instructions below to restore it:
    How to restore iPod
    Verify that you have an active Internet connection, because you may need to download new versions of the iTunes and iPod Software.
    Download and install the latest version of iTunes if necessary.
    Open iTunes. Connect your iPod to your computer using the USB or FireWire cable that came with your iPod.
    After a few moments, your iPod will appear in the Source panel in iTunes.
    Select your iPod in the Source panel. You will see information about your iPod appear in the Summary tab of the main iTunes window.
    Click Restore.
    If you are using a Mac, you will be asked to enter an administrator’s name and password.
    A progress bar will appear on the computer screen, indicating that stage one of the restore process has begun. When this stage is done, iTunes will present one of two messages with instructions specific to the iPod model you are restoring.
    Disconnect iPod and connect it to iPod Power Adapter (typically applies to older iPod models).
    Leave iPod connected to computer to complete restore (typically applies newer iPod models).
    During stage two of the restore process, the iPod displays an Apple logo as well as a progress bar at the bottom of the display. It is critical that the iPod remain connected to the computer or iPod power adapter during this stage.
    Note: The progress bar may be difficult to see, because the backlight on the iPod display may be off.
    After stage two of the restore process is complete, the iTunes Setup Assistant window will appear. It will ask you to name your iPod and choose your syncing preferences, as it did when you connected your iPod for the first time.
    You can find the instructions in this article:
    Restoring iPod to factory settings
    http://support.apple.com/kb/ht1339
    All the best,
    Jeremy

Maybe you are looking for

  • TS5150 Audio is not working, please help!

    my apple television is connecting with my computer (air play) but I cannot hear the audio when trying to watch televisions from my computer.

  • Use of Inbound Handler property in SFP transaction while creating form

    Hello, Can anyone please tell me what is the use of Inbound Handler property while creating adobe interactive form in SAP SFP transaction. Steps -> 1>in SAP system go to transaction sfp. 2>create form. 3>In properties tab->Inbound Handler.->what is t

  • Server 10.8.5 and a Win7 user

    I have an odd problem: Windows user can connect to the server, login with his credintials, save to, move files, edit files...but when he creates a new folder (which he can) and tries to change the name from New Folder to something else he gets this e

  • Best way to create 2d transparent cutout trees?

    What is the best way to extract trees out of real photographs. I want to make excellent 2D transparent tree cutouts for my work. I used the refine edge technique but it doesn't give good results. I end up using the eraser tool to clean up stuff. One

  • Urgent: CC & BCC Problem

    i try to send an email with the CC and BCC and i found that no mails sent to the CC & BCC and i found at the forum someone till that this a bug at the javamail API , so please i need to know if this bug still exist and if there is any solution to thi