Button send email from preSubmit of the event

I am working on a study that contains the send e-mail button.  When a user clicks the button, their study should be tested for three conditions.  The first is that all mandatory questions have an answer.  These answers are yes/no radio buttons.  The second is that if the user has answered 'No' to one of the first seven mandatory questions, they must submit a corrective action form.  A message box appears to inform the user that they must fill out the corrective measures which becomes visible, as the last page of the survey, in the click event of the radio button 'no '.  When the user has entered the field of corrective measure a response and click send by e-mail once again button, the investigation should then let them finish the presentation of messaging.  The following code is in the preSubmit action form:

Form1::preSubmit:form - (JavaScript, client)

If (CorrectiveAction.presence == 'visible')

{

If ((CorrectiveAction.rawValue == null) |) (CorrectiveAction.rawValue == ""))

{

xfa.event.cancelAction = true;

xfa.host.messageBox ("Please complete section of corrective measures at the end of this form.");

}

}

I currently have following problems:

In Adobe Pro 9:

The send e-mail feature is not cancelled if the user has not filled the form of corrective action.

In Adobe Reader 9:

The send e-mail button does not at all, but the message box is displayed if the box 'no' has been selected.

You can provide any assistance would be greatly appreciated.

Change the property type button instead of the button send email, and then assign the Submit control Type.

Tab submit, together submit it as to what your condition is... XML / PDF etc...

Instead, copy the following code in the preSubmit event after all your validations are completed.

Declare variables to hold the values

var strToAddress, strCCAddress, strSubject, strMessage

Assign values to the variables above according to the needs...

event.target.submitForm ({cURL: "mailto:" + strToAddress + "?"}) subject = "+ strSubject +"& body ="+ strMessage, cSubmitAs: 'PDF'});"

Sample is here...

https://Acrobat.com/#d=pFyQRZ * C1TYAlU * 8VOpV8A

Thank you

Srini

Tags: Adobe LiveCycle

Similar Questions

  • Button send email, do not give the full form

    Hi guys

    I am new to LiveCycle Designer, so my problem can be something very simple that I missed.

    I have a simple form that I intend to use for my clients in training sessions to book with. There will be emailed to them or downloaded from my Web site to fill out and the submissive me via the button send email at the bottom of page 2.

    My form has no fancy coding or content Dynamics - simple text fields and combo boxes. The subform spread 2 pages and everything is included in just a subform.

    The send e-mail button compose an email with the attached xml file, but the xml file contains the data in the tables on page 2 - 1 page fields is completely ignored.

    Can someone help me out with this please, I would really appreciate it.

    Hello

    If you look at the object / link tab, then select subforms and various objects. You will see that on page 1, that they are set to 'None '. considering that you will need these together on 'Normal', as the table on page 2.

    If the link is 'None' then send xml does not display these values. If the link is 'Normal' then the data will be returned.

    Good luck

    Niall

  • Cannot send email from a computer that is not on the same domain as the e-mail server

    We have just set up a mail server on Amazon. I can send email from the fine command line. I can send and receive e-mail from a PC connected to the Amazon with Thunderbird field. I can receive e-mail from a PC outside the realm of server (Amazon) with Thunderbird mail, but cannot send mail. I always get an error in time-out to a PC outside the field of Amazon. The SMTP settings are identical between computers connected to different areas. All necessary ports are also open. Any help would be greatly appreciated.

    It was a problem of incoming firewall after all. Problem solved.

  • Where is the "Logout" button to emails from Thunderbird?

    Where is the "Logout" button to emails from Thunderbird? It is impossible to "disconnect" as it is with all other emails that I used.
    Thank you

    You do not connect you. You don't sign in then why would disconnect you? You press the red x in the corner and close the program.

  • Cannot send emails from gmail or yahoo when connected to the vpn

    I use a vpn to hide my IP address. When I am connected via my VPN I can't send emails from my gmail or yahoo accounts in thunderbird
    If I disconect vpn, they go through the fine

    Thanks for the suggestion, I've changed the security of connection for STARTTLS
    and they work

  • Cannot send emails from lineone account Messaging on the iphone 6 s

    Cannot send emails from iphone6s to my e-mail account Lineone, although as the settings of care as recommend it

    What happens when you try to send an e-mail? You see a mistake? If Yes, what is the exact text of the error? Sending a message is processed by the SMTP server. You may need to verify that all the settings for the SMTP server are correct, depending on your provider, including the user name, password and any SSL or port settings.

  • Is it possible to automatically send emails from a specific sender to the junk mail folder?

    move to junk, but not to block the sender

    is it possible to automatically send emails from a specific sender to the junk mail folder? I don't want to block.

    Any Hotmail questions belong to http://windowslivehelp.com/product.aspx?productid=1

  • When sending emails to the bcc and access to a group, I hit the button send and dates back to the Inbox without sending.

    When sending emails to the bcc and access to a group, I hit the button send and dates back to the Inbox without sending. I even changed users on my pc and it always does.  I closed temporarily add-ons thinking that would help, but did not seem to make a difference.  Can I have a virus?

    Hello

    • E-mail are what customer you referring?

    If you use Windows live mail, then the number you posted is related to windows live and will be much better suited in Windows live forums. Click on the link below.

    Windows Live Solution Center

    http://www.windowslivehelp.com/

  • Error: "some errors have occurred during the processing of requested tasks". Sending emails from Outlook Express

    Original title: Repetitivet sending emails from Outlook Express

    When sending emails from my Outlook Express , the following occurs:

    (1) as usual, send the message falls into my Outbox and begins to be sent.

    (2) when the message was sent, I get a message that "some errors occurred while processing requested tasks" but no actual errors are displayed.

    (3) the sent items folder does not show that a message has been sent... but a message has been sent.

    (4) the original message remains in my Outbox and will be sent over and over again.

    As you can imagine, it's a very embarrassing problem.  All suggestions are welcome, but please keep the instructions clear and simple.

    Ed *.

    Hello

    Windows XP Service Pack 2 is installed on your computer? To work on this question, see these steps.

    It seems that there is a corruption of dbx file.

    I suggest you go over your messages out of the Inbox, and then create new folders Outbox and sent items after you move the messages you want to save to a local folder that you create.

    Reference:

    (a) click onTools

    (b) thenOptions

    (c) selectMaintenance

    (d) Record Store will reveal the location of your Outlook Express files.

    (e) Note the location and navigate on it in Explorer Windows or, copy and paste to start and select run.

    In Windows XP, Win2K & Win2K3 the OE user files (DBX and WAB) are by default marked as hidden.

    To view these files in Windows Explorer, you must enable Show hidden files and folders

    Reference:

    (a) clickStart

    (b) Control Panel

    (c) Folder Options icon

    (d) notice, or in Windows Explorer

    (e) Tools

    (f) the Folder Options

    ( viewof g).

    With Outlook Express closed, find the DBX files for the items in the Outbox and sent and delete them. New ones will be created automatically when you open Outlook Express.

    After you're done, followed by compacting your folders manually while working * off * and do it often.

    Reference:

    (a) clickOutlook Express at the top of the the folder tree so no folders are open.

    (b) click onthe file

    (c) work offline (or double click working online in the status bar).

    (d) file

    (e) file

    (f) compact all folders. Wait for the compaction to complete.

    General precautions for Outlook Express:

    Do not archive mail in the receipt or sent items box. Create your own user-defined folders and move messages you want to put in them. Empty the deleted items folder daily. Although the dbx files have a theoretical capacity of 2 GB, I recommend about a300 MB max for less risk of corruption.

    Information on the maximum size of the .dbx files that are used by Outlook Express:
    http://support.Microsoft.com/?kbid=903095

    Compact often as specified above.

    Reference:

    (a) in the Tools

    (b) selectOptions

    (c) maintenance:

    (d) uncheck Compact messages in the background and leave it unchecked. (N/a if running XP/SP2).

    And backup often.

    See also: error messages when you send and receive in Outlook and Outlook Express http://support.microsoft.com/kb/813514

    An Outlook Express basic repair kit

    http://support.Microsoft.com/kb/2398839

    Hope the information is useful.

  • My hotmail account has suddenly started to send email from spam to my contacts. I am even not connected at the time

    original title: virus hotmail

    My hotmail account has suddenly started to send email from spam to my contacts.  I am even not connected at the time

    What to do if your Hotmail account is hacked or Hijacked

    http://social.technet.Microsoft.com/wiki/contents/articles/what-to-do-if-your-Hotmail-account-is-hacked-or-hijacked.aspx

  • I can't send email from Quickbooks, he said: I need to change something in the registry by default

    I have windows 7 and that you have just installed quickbooks, I can't send email from quickbooks, it says that I have to go and change something in the registry by default or some thing so my contacts through to Quickbooks, I tried to use windows live as my default but it does nothing, any suggestions will be appreciated Mandie

    Original title: can someone help me

    M

    This is probably something you should ask to Quickbooks as they are the experts on this subject.

  • Cannot send emails from the Mail application, error "Email is unavailable check with provider.

    Original title: the application of mail outlook windows 8 does not work on my windows PC 8.

    Dear anyone who can help,

    The WINDOWS for OUTLOOK MAIL APP is sending emails problems. I try to send an email, but he finds himself stuck in my Outbox, and follows an error message telling me to "CHECK WITH MY SUPPLIER."

    "" "I noticed he says 'myemailaddress@Outlook ' is not available", but I can't work out why. Is this a problem at the end of servers or mine?

    It was working fine before and had there is a little more than two weeks, when the error occurred. (I don't know exactly, because I've been away)

    I have no other synchronized e-mails (Gmail for example) it is only the account of a main outlook that I use to manage everything on my PC.

    Logging in to my email online via Chrome etc. address works fine to send and receive e-mails. THE APP IS THE PROBLAMATIC

    There only seems to be a lot of information on this issue (a few messages from 2013) so I want to know if it's just me and finally how to solve the problem.

    Help, please! Thank you!

    Hello

    Please contact Microsoft Community. I understand that you are unable to send emails from the Mail application. I've surely you will help solve this problem.

    This problem might have occurred because of these reasons:

    1. App is not updated.
    2. App is corrupt.

    Try the steps listed here and see if it helps:

    Method 1:
    We will run the troubleshooter app and check if it helps.
    Solving the problems of the app

    Method 2:
    If the problem persists, I suggest you try the procedure described in the article that will help identify and correct common problems of App.

    Solve problems with a soft
    http://Windows.Microsoft.com/en-in/Windows-8/what-troubleshoot-problems-app

    Note:
    1. try all the steps except convenience store App and those that you have already tried.

    2. apply to Windows 8.

    See the article for more information.

    Messaging app for Windows
    http://Windows.Microsoft.com/en-us/Windows-8/mail-app-tutorial

    Note: Applies to Windows 8.

    Hope this information helps. Reply to the post with an up-to-date report of the issue so that we can help you further.

  • I can't send emails from my firefox browser. I can receive but can't send them. I used to be able too and now it has stopped working.

    When I first installed firefox there are about 1 1/2 years my email worked fine. It has now stopped working about 3 weeks ago. I can send emails, but I can't send them or respond to them.

    I started having this problem yesterday (19/06/13). I can't send any email from my Hotmail using Firefox email account. (I can send email from my Yahoo email account well.) I get the email fine.
    Use of IE, I am able to send the email to my Hotmail and Yahoo accounts.

  • Cannot send email from my iCloud because my IP address is blocked (?)

    Cannot send emails from my iCloud account because my IP address is currently blocked (?) This was written in the return message. Can someone help me?

    Why is my IP blocked address - http://www.clickhost.com/why-is-my-ip-blocked/ and have a look here too - http://whatismyipaddress.com/blacklist-check

  • Cannot send emails from iPad 2 air.

    I can receive emails on my ipad, but I can't send them.   I have a Telstra business account.

    Hello Learnfun,

    Thank you for using communities of Apple Support.

    If you are not able to send mail from your iPad, the following article will be a good place to start to solve the problem.

    Get help with Mail on iPhone, iPad and iPod touch

    Best regards.

Maybe you are looking for