EMail Submit button with mailto: based on form data

Based on form data, I would like to have an email button that sends mail to the email address identified in the email field. Obviously this can change, how would one go about programming a button to send to email based on field data?
Thx...
/cw

Hi Chris,
Yes this can be easily done. I gathered the following solutions from various threads and so I am not claiming any originality here...
Set up a textfield "Email", with a tooltip telling users to separate email addresses with a ";".
Next set up a regular button with the following Javascript in the click event:
var email = xfa.resolveNode("form1.#subform.Email").rawValue;
var subject = "Specify your subject line here"
event.target.submitForm({cURL:"mailto: "+ email +"?subject=" + subject +"&body=You can also input some standard text to appear in the body of the email.",cSubmitAs:"PDF",cCharset:"utf-8"});
You might want to put an if statement that if the "Email" textfield is blank/null that an app.alert comes up informing the user to input at least one email address.
We took it a stage further on one of our forms. We set up three checkboxes with people's names who are regularly sent the form (nod and cc1 and cc2) and then a textfield "additional" for additional addresses.
Each checkbox had an associated Textfield (EM1_email, cc1_email, and cc2_email) that were invisible. Each checkbox had similar Javascript in the mouse up event:
if (this.rawValue == 0) {
EM1_email.rawValue = null;
else {
EM1_email.rawValue = "[email protected];";
Then we set up another invisible textfield (Email) which had the following Formcalc in the calculate event:
if (nod.rawValue == 0 & cc1.rawValue == 0 & cc2.rawValue == 0) then
$ = null
else
$ = Concat(EM1_email, cc1_email, cc2_email, additional)
endif
This basically pulled the email addresses from the ticked checkboxes and the additional user inputted email addresses into one text field. From there the regular button with the script above send the email. This speeded up the process for regular reciptents.
If you search the forum for topics such as cURL:"mailto: you should see lots of other examples.
Good luck,
Niall

Similar Messages

  • Customise the email submit button with custom email, cc, bcc, subject and body - almost working!!

    Hi
    I have been working on trying to customise the email submit button to custom entry email address, cc, bcc, subject etc etc
    You can use the pre-submit function on the email button
    I am using the following code:
    this.event__click.resolveNode("#submit").format = formatlist.rawValue;
    this.event__click.resolveNode("#submit").target = "mailto:"+customemail.rawValue+"?subject="+subject.rawValue+"&cc="+cc.rawValue+"&bcc="+bcc.rawValue+"&body="+body.rawValue;
    THis is picking up values from a dropdown and a series of text boxes the values of each area.
    This works beautifully except for the subject area. For some reason teh subject area copies the entire srting from the subject onwards, all other areas (cc & bcc & body) all only copy the value assigned to its function.
    Any thoughts
    Feels like a bug in the coding but it may also be intentional.
    Thanks

    I believe that there was a bug logged for this issue, here is a workaround.
    Add a regular button to the form used to execute the EmailSubmit button  (you can make the EmailSubmit button invisible)
    On the click event of the "newly added" regular button add your script
    NameOfEmailSubmitButton.event__click.resolveNode("#submit").target = "mailto:"+customemail.rawValue+"?subject="+subject.rawValue+"&cc="+cc.rawValue+"&bcc="+bcc.rawValue+"&body="+body.rawValue;
    NameOfEmailSubmitButton.execEvent("click");

  • How to use email submit button with webmail; not a desktop email client

    We've made a form that will submit data via an xml attachment to an email. It was all tested as fine (using Adobe Reader 7...) and has been deployed - DISASTER.
    People using Adobe Reader 8 cannot choose to save the xml file. AR 8 just opens up their default email client. If they use webmail and it's not on the list of default email clients (IE/Tools/Options/Programs)then we don't seem to be able to get the xml data out.
    How can you get AR 8 to give you a choice of what to do with the xml data when a user clicks the Submit by email button? Just like the email client choice in AR 7!!!! Please, if anybody from Adobe sees this, help us...

    Did you ever get a solution to this problem. I have several clients who use internet email and it always worked with earlier versions of reader because it would display the "Select Email Client pop up.
    Please let me know.

  • Email Submit Button problem

    I used the Email Submit Button on a couple of forms but it is not working. It creates an email, but the attachment is in .xml format. If I change it to Submit As: PDF, it does not create any email at all. I would like it to create an email with an attachment in pdf format that keeps all the user entered data. Impossible?

    Hi,
    Try doing the following
    try using the simple 'Button'. In the button's object properties, in the tab named 'field', select 'Control Type: submit'.
    Then, in the 'submit' tab in the object properties, choose PDF in the 'submit format' dropdown field.
    In the 'submit to URL field' type:
    mailto:nameataddress.com?subject=mySubject&body=Done
    You may need to adjust the e-mail address, subject and body text.
    Regards
    Ayyapparaj

  • Help with making an Email Submit button on a form!

    Im making a form using livecycle for the first time.
    Im trying to put on it a email submit button - i used email submit field and made the button. Then in the Objects Palette, in the box that says email address i put in the email address that i want it to be sent to. I then tried to email the form, and i received an email, but the attachment was just a bunch of codes, not the form. I want the email to come through with the PDF form.
    I searched on help and this is what i found:
    3.
    In the Control Type area, select Submit. Data will be submitted according to the settings in the Submit tab.
    4.
    Click the Submit tab and type the URL protocol in the Submit to URL box.
    To
    Use this URL protocol
    Example
    Submit the package to an ftp site
    ftp
    ftp://ftp.gnu.org/gnu/GPL
    Submit the package to a web server
    http
    http://myserver/cgi-bin/
    Submit the package to a secure web server
    https
    https://myserver/cgi-bin/
    Submit the package to an email address
    mailto
    mailto:[email protected]
    5.
    Select PDF from the Submit As list.
    I cant find where to change these options - can someone help?
    Thanks!

    Hi,
    The issue is that if the form is not Reader Enabled, then users with Reader cannot submit the form as a PDF.
    They can submit it as an XML file and then you would re-import this back into the form on receipt. It is an extra step, but it does have the advantage that the data being submitted as an XML file is very small.
    If you really need/want the form to be submitted as a PDF AND your users have Reader, then the form will have to be Reader Enabled.
    There are two options:
    Reader Enable using Acrobat Standard (version 9) or Acrobat Professional (version 8). This will give certain rights, like the ability for users with Reader to save the form and for the form to be submitted as a PDF. However there are licensing restrictions, see EULA.
    The other option is to Reader Enable the form using LiveCycle Reader Extensions ES2. This is a server product, which entails additional cost and a cost to Reader Enable each form. It is intended for processing large volumes of forms/large volumes of data.
    There is a summary here:
    http://assure.ly/gYyYc2
    So there are a couple of options.
    Form NOT Reader Enabled:
    Users cannot save the data they input.
    Data must be submitted as an XML file and processed on receipt.
    Form IS Reader Enabled:
    Users can save the data they input.
    Data can be submitted as a PDF (or XML file).
    Hope that helps,
    Niall
    Assure Dynamics

  • Problem with Email Submit Button in  Interactive Form

    Hi All,
    I am using EMail Submit Button in InteractiveForm.
    At run time when i click on this button then it is sending this pdf file in the form of .xml file at given Email address but i want to send pdf format only.
    Can anyone help me how to solve the issue.
    Thanks & Regards
    Dinesh Kumar

    Hi,
    Try doing the following
    try using the simple 'Button'. In the button's object properties, in the tab named 'field', select 'Control Type: submit'.
    Then, in the 'submit' tab in the object properties, choose PDF in the 'submit format' dropdown field.
    In the 'submit to URL field' type:
    mailto:nameataddress.com?subject=mySubject&body=Done
    You may need to adjust the e-mail address, subject and body text.
    Regards
    Ayyapparaj

  • I want to have users submit the form in PDF format but it doesn't work using the email submit button

    Hi all,
    I have a form that I want to be returned to a specific email address as a PDF File. This is so that reservations people can open the pdf, and extract the information from it. Keeping it as a PDF will allow them to easily read and use the form.
    When I use the "Add and Email Submit button" approach, as outlined in the "How to" area, everything works fine, except that the format of the submitted file is in xml, not Pdf which is what I need it in.
    I then tried adding a Button to the document from the Library, and set it's "Control Type" to "Submit". This provided me with the submit sub-tab, where I set the "Submit Format" to PDF. In the "Submit to Url", I entered the following - "mailto:[email protected]" (without the quotes)
    The first approach works, but is not in the PDF format that I need (I believe).
    The second approach keeps giving the following error when one selects the submit button - "This operation is not permitted".
    We use Lotus Notes (yes, I know...not my favorite either, and it may be the problem here).
    Any help that might be provided is greatly appreciated!!
    Rob

    Thanks, but, using the "free" version of Reader, there is no opportunity to open nor import the xml data - the menu options do not exist - there is no import listed.
    If we try to open the xml file directly, then we get an error - something to the effect of "unsupported file type, or the file is corrupted".
    I just noticed in my Pro version that there is the command File ->Form Data ->Import Data to Form... command. Is this what you are referring to?
    What do you recommend? Perhaps the easiest thing to do would be to purchase a few copies of Acrobat Pro for the reservations people to use? I was hoping that the free version of reader would do it, but perhaps not?
    Thanks again,
    Rob

  • Email submit button doesn't work with Thunderbird

    I created a LiveCycle (v8.2.1) form with the email submit button. Works fine if the sender is using Outlook. If their using Thunderbird, it does not. I installed Thunderbird on my system (normally I use Outlook) and set Control Panel/Internet Options/Programs email to use Mozilla Thunderbird as the email program. When I click the Email button on my LiveCycle PDF form, I get a message telling me: Select an Email Client. The "Desktop Email Application" radio button is checked and that should be fine; the explanation for this button indicates that it should be checked "if you currently use an email application such as Microsoft Outlook Express, Microsoft Outlook, Eudora, or Mail.". I leave that checked, since I am using an email application and click OK. After 20-30 seconds, I get a message with the title bar: Microsoft Office Outlook "A program is trying to access e-mail address information stored in Outlook..." Allow|Deny|Help. I click Deny. After a minute or so, an Outlook "New" email window appears with the appropriate information from my LiveCycle PDF form. Right content, wrong email client. Since Thunderbird is my "default" email application, where is LiveCycle coming up with Outlook? What do my customers do who don't use Outlook?
    I hope someone has a good solution.
    Thanks.

    When you click the submit button, do you get a window that has the title "Select Email Client"and has the options of "Desktop Email Application" and "Internet Email"? If not, does anything at all happen?
    Note that Mac users must have Acrobat or Reader installed and be viewing the PDF in Acrobat or Reader for it to work. Many (most?) Mac users have the Preview Application as their default PDF viewer, and it does not support many interactive features such as form submissions. Although some third-party PDF viewers for Windows support form submissions, many do not.
    For those that do not use PDF viewers that support form submissions, they will have to manually attach the document to an email message.

  • Email Submit Button not Submitting Full Form

    Hi guys
    I'm new to LiveCycle Designer, so my problem may be something very simple that I have missed.
    I have a simple form which I intend to use for my clients to book training sessions with. It will be emailed to them or downloaded from my website to be completed and the submitted to me via the email submit button on the bottom of page 2.
    My form doesn't have any fancy coding or dynamic content - just simple text fields and drop down boxes. The subform spreads 2 pages and everything is included in just the one subform.
    The email submit button composes an email with the xml file attached, but the xml file only contains the data from the tabulated fields on page 2 - page 1 is completely ignored.
    Can anyone help me out with this please, I'd really appreciate it.

    Hi,
    If you look at the Object / Binding tab and then select the various subforms and objects. You will see that on page 1 these are set to "None"; whereas you will need these set to "Normal", like the table on page 2.
    If the binding is "None" then an xml submit will not return these values. If the binding is "Normal" then the data will be returned.
    Good luck,
    Niall

  • Email submit Button issues on form

    I am having an issue with attempting to generate email with a button in my form.  I had created one some time ago (using Acrobat PRO 9-Live Cycle) and the button generating email to a specific person seemed to be functioning properly.  I now had a person tell me that the usual person was not receiving his email.  When taking a closer look (I am now using Acrobat X) at the same form, the email function worked appropriately for me and went to the appropriate person.
    Now, however, when  I took that same form into designer to make some additions and continue looking at the button, I wrote out a new version of the form and the very same button does not function the same way.  Previously, a pop-up would appear and you could choose your normal e-mail or internet email and then, when choosing your normal method of email, a new email message would appear(which you could edit) and it would be directed to the person that was specified on your button properties SUBMIT tab as the SUBMIT TO URL.  
    Now when I look at my new form at the same button(generated from the original), I can't even locate a SUBMIT tab for the same exact button.  What happens when I click it is a pop-up that says it is sending the form to a totally different e-mail address (that I experimented with at some time in the past.   When I look at all the event scripts associated with that button, I now see a java script associated with it that refers to this other email.  Even when I change this email inside the code, the button still comes up with a pop-up that announces it will be sent to the original address (which I changed in the script).
    I tried to creat a brand new "email submit" button using that new object type, but it is still defaulting to that erroneous address and I am not seeing where to change it?
    I know there must be some behnd the scenes goings on that I just am not familiar with.......Would this email be stored elsewhere?....have the tabs changed for buttons, but then why can I still see that property on my original form?.......is there a better approach?.......help?!!!
    May or not be related.....I also added a print button and that does not function either, but no pop-up or warning there. I did not have one on this form previously.
    Thanks in advance!

    I discovered George Johnson's post on changing identity at EDIT->PREF->ID->EMAIL ADDRESS which answered one of my questions, but I still not sure about the other behaviours that I mentioned.

  • LiveCycle form creation - email submit button

    I created a form in LiveCycle with an email submit button.  The button works for myself and another person for whom I was creating the form for.  However, now that I am testing this form with other users the email submit button is not working.  When users click the submit button it clicks blue but no response.  Because it was created in LiveCycle do I need to do something to enbed the functionality into the form.  The steps to follow in the help file have produced no results.
    Thanks

    Paul,
    I did that and I didn't get any wizard.  Just a dialog box including instructions to save the file as another name and that is it.
    Am I suppose to get something else?
    >>> pguerett <[email protected]> 8/19/2009 9:22 AM >>>
    Then that is your issue .....I am guessing that your tests were done on Acrobat right?
    To be able to submit a PDF from Reader you must Reader Extend the document. Open the file in Acrobat and under the Advanced/Extend Features for Adobe Reader menu follow the wizard to conclusion. Save the file as a different name (I like to have RE in the name so I know that I have extended it - filename_RE.pdf). Now try it with the new file.
    Paul

  • I have an InfoPath with submit button, publish the same to form library.

    Hi All,
    i have an InfoPath with submit button, publish the same to form library.
    Now, i open the form  fill it and attach some files, when i press submit button, that attachments will go to the particular document library.
    Can any one help me out.
    Thanks in Advance!

    Hi Anil,
    According to your description, my understanding is that the attachments attached to the form were submitted to an documents library.
    By default, the attachments should be attached with the InfoPath form and will not be submitted anywhere.
    There may be some customizations on the form that is to submit the attachments to the document library.
    Please check the links below if the customizations are made in the form.
    http://www.bizsupportonline.net/blog/2010/01/upload-document-sharepoint-infopath-form/
    http://www.bizsupportonline.net/blog/2010/04/top-10-questions-infopath-file-attachments/
     Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Email submit button using drop down boxes, cc field and

    I have a form that I would like to have the employees use a drop down box that already exists on the form with names and email addresses and use those names in the to field of an email submit button.  Also, I do have a static cc: address in teh cc field and for the subject of the email to use  an existing field such as the name field as the subject of the email and attach the form to it.

    I tried that but it  does not seem to be working.  I am a JavaScript Novice.  I am trying  to use the mailto field based on email addresses in a dropdown box, a static cc field like cc: [email protected] and for the subject to be based on the company name field on the form.  But before all of that I want to make sure all the required fields are filled out.  help I have been working on this for over a year.  It may seem simple but it's not working.

  • Using a submit button, how can I include a data key and a message in the body of the email??

    I have a form that I have created in LiveCycle with a submit button to have the completed form emailed to a specific person. I have it set up with a message in the body of the email, but I am looking to add an additional message based on the results of one of the fields in the form....is this possible without major script writing?
    I am not a programmer, but willing to learn some script.

    softwater wrote:
    ...and costs $14.99
    Yep! And if you absolutely need (or think you need) that functionality, it is worth every penny.
    As Don already pointed out, exactly what the recipient sees will depend on how they've set up their machine and what unnecessary 3rd party apps they might've installed to display attachments the way they want.
    In theory, that is true. In practice, Attachment Tamer will cause more of your messages to show up as plain-jane icons on the other end. The problem is, after all, people running Outlook 2003 and 2007. These people likely aren't doing many system modifications.
    If I were you, I'd use the free solutions provided above, save my money and let my recipients decide how they will handle their mail.
    I completely agree.

  • ADOBE LiveCycle Designer 8 - EMAIL SUBMIT BUTTON DOES NOT WORK

    I created a new form in Adobe LiveCycle Designer 8, but the email submit button, nor a regular button assigned with a 'submit' function will do anything. It should initiate a new Outlook email but it does not. My default programs are set correctly (default email program and the default "mailto" program are set to Outlook). This document was created not only with ALC8, but on a Windows Vista PC with MS Office 2007. I ran a test to see if it would work on a WinXP SP2 machine with Office 2003 and it still did not work.
    Can anyone help?

    Alan
    Though not an expert, I've created a few forms with the Submit by Email button. If you've already done this then sorry for asking, but did you go through the Acrobat Distribution (Forms>Distribute Forms)process after creating the form in LC8? As far as I can tell the email submit button doesn't work without this stage.
    This confirms the email submission address, then sets up a dataset to be saved in a location of your choice.
    filename_dataset_0001.pdf
    then a file type that can be edited, saved and submitted by Reader users:
    filename_pub_0001.pdf
    You can save this to your intranet server or email direct to the recipient.
    When the submit button is then used you receive a copy of the whole form which on opening will prompt you to add it to the dataset. Receiving and adding multiple forms to the data set is straightforward. You will see them all listed in the viewer above the form itself. From here you can also then select and export the data to Excel via xml or as a csv file.
    Note that any changes you make to the form should be to the original document and the distribution process repeated, otherwise the functionality of the form will be affected.
    That's about the limit of my knowledge I'm afraid, therefore if you have already tried this and are still having problems then hopefully someone else can help out.
    Regards

Maybe you are looking for