Alertbox on submit email if a subform is visible

Hello,
I'm trying to create a script that would show a alertbox reminding the user that he must join needed files to the email before sending it. But this message must only be shown if a specific subform is visible, if it is not, than it must tranfer to the email directly.
I'm using the Lc subit by email button that is standard in Lc ES2 and I've been meddling around and I can't find a script for my probleme. I've used the general alertapp. but I really need the message to appear only if my subform is visible.. Hoping someone can help me with this. Thanks in advance for all your help.
Melanie

Hi,
you can use a script in the preSubmit event of your Mail button.
It will check the visibility of you subform and prompt a message if it is visible.
form1.#subform[0].EmailSubmitButton1::preSubmit:form - (JavaScript, client)
if (Subform1.presence == "visible") {
        // Show a warning message
          xfa.host.messageBox("STOP");
        // Cancel the submit process
          xfa.event.cancelAction = true;

Similar Messages

  • New to Adobe Forms and need help with Submit Email button

    I am new to Adobe Forms in Windows.  I created a form with a submit email button.  When users try to click the button, the message is operation cannot be completed.  My test user has Adobe Reader 9 installed.  I'm at a loss as to how to resolve the issue.  Please assist.  TIA!

    Three different aspects
    1. Set the form up to submit the data (XML or FDF), not the full PDF. You can import the data to the PDF on your end.
    2. You can turn on Extended Reader Rights, but then limit the use/users to 500 by the EULA. The applicability of this option depends on your intended application. In a small office, it would be fine. For general web use you would likely exceed the limit and be in violation of the EULA.
    3. There may be an e-mail problem, one reason that e-mail is not recommended for form submission (even if the manual discusses it). Again, in a controlled environment like an office it will probably work fine, but in a web setup it is best to use a web script. There are 2 problems with e-mail that both depend on the client system (YOU have no control, but will be blamed in any case). First, the client machine has to be set up as an active MAPI client. Many folks do not have this on. Second, some e-mail clients treat PDFs like text and the result is a corrupt e-mail submission, even if it makes to you.
    If you have the possibility of web submission, do it. I suggest only having the form data submitted and not the form.

  • Submit Email returns filled in PDF document

    I has created a fill in form for my website with Adobe Acrobat Professional 8.0, Forms Function which take me to LiveCycle Designer to create the form. When I insert the SUBMIT EMAIL button the guide says I can get either the data back or a filed in form as an attachment. The default condition seems to be just getting the data back as an XML file.
    What I want to get back is the filled in form as an attachment. Each response is "one-of-a-kind" and I don't need to manage the data, merge the data, or consolidate the data. I just need to view the completed form and be able to print it off.
    How do I change the default setting in SUBMIT EMAIL from data to filled in form attachment?

    Thank you for your quick, and helpful response.
    I modified my form per your suggestions, sent it to Europe and they were
    able to submit it without an error message!
    Of course, I received duplicate responses, but at least it worked error
    free.  Thank you.
    Has anyone ever located the root of the Adobe/Lotus Notes problem to
    completely eliminate the duplicate address?
    Lori Kassuba <[email protected]>
    04/23/2009 09:35 AM
    Please respond to
    [email protected]
    To
    Kevin Lucas <[email protected]>
    cc
    Subject
    Submit Email returns filled in PDF document
    This problem has come up in other forum and it's believed to be a bug in
    Lotus Notes. One workaround was to put a space next to the comma after the
    address.

  • My submit email button if pushed twice puts email body in "to" address

    My submit email button if pushed twice puts email body in "to" address????
    Any ideas???

    Seems odd it there aint a email field in the Object menu.
    Im still on 8.2 so havent checked out the latest version. Aint it there if you go Window -> Object, or just hit SHIFT + F7?
    Is the full object menu visible so a part of it aint hidden below the screen?
    Hope it works out.

  • Submit Email button

    Please forgive me for what may seem like a novice question, but I am a beginner.  We have used live cycle to create a form based on a Word document and put it on our website as a fillable .pdf form.  When a user fills out the form and clicks the "Submit Email", the form is returned to us as a .xml document.  Is there a way to have the form returned to us as a .pdf form rather than a .xml form? (where we simply print the filled out form and enter the information into our database manually.  Please advise - we are a not-for-profit company with no knowledge of xml.  Any information would be greatly appreciated.  Thanks very much.

    Yes it is possible ...here is a thread that discusses the issues.
    Paul
    http://forums.adobe.com/message/2262709#2262709

  • New to LiveCycle - Submit Email problem

    When I try to distribute a form LiveCycle wants to attach the form to my email. I'm using Yahoo mail. The LiveCycle attachment specifies the folder for the attachment but I've tracked it down to a hidden system folder.
    Is there a way to specify the folder that is being used for attachments?
    Am I doing something wrong?
    TIA

    Sure.
    I create a simple form with one radio button and an email submit button. I then use the DISTRIBUTE FORM wizard and insert my Yahoo! email address to send the form to myself. The Yahoo! mail interface comes up as normal and asks me to attach the form, giving me the path to the form. I've followed the path to no avail and then realized it may be a path to hidden files and folders.
    When I change my view to show hidden files and folders then the form appears and is ready to be attached. Unfortunately, if Microsoft is placing the PDF to be emailed in a temporary folder that is hidden then there's more to this than meets the eye (I expected I should be distributing from the folder I saved the file to!).
    I'm figuring I"m missing something in the setup of the file. BTW, I've also tried simply attaching the saved PDF and then emailing. When the email arrives at it's destination and the user opens it the resulting Yahoo! attachment thing happens.
    Of course, the user can always save the PDF and resend but doesn't that defeat the purpose of automating via the submit email button?
    Any ideas are appreciated.
    regards,
    denis

  • Submit Email PDF in Acrobat X Pro / LiveCycle ES2

    I'm pulling out my hair trying to get this form I created to email back the filled out pdf. I've spent a couple of days searching like crazy trying to figure out how to fix this issue.
    I created a fillable pdf form using LiveCycle ES2. I created the button to submit via email. In the submit to URL field I have: mailto:[email protected] The Submit As: PDF. ( we do not need a subject line) I saved the document, opened it up in Acrobat X Pro, went to File, Save As, Reader Extended PDF, Enable Additional Features, clicked Save to Enable Usage Rights for Reader. (that's what every other search has said to do)
    So, I send the form via email attachment to a co-worker to test it out. We fill out the form, click the Submit button... and nothing happens... again. The prompt asking which email client to use pops up, but that's it. I'm not sure what else to do. Can someone help please?!?!?!?!?!?  

    We'll need more information, such as OS, version of Acrobat/Reader is being used, what email client is being used, etc. Email is generally unreliable and not secure, adn whether is works seamlessly depends on whether the client machine is set up correctly.
    Submitting to a web server is a more reliable approach that can be made secure relatively easily.

  • "Submit Email" client issues

    I am using adobe Designer in Acrobat 9 Pro to create forms to be distributed to members our our department. We need the forms to be returned to us by email in filled out PDF form. I have created a working Submit by e-mail button and made the submit format PDF and extended the "reading options" so that users only using Reader can submit the form in filled out PDF format. This all works fine while using Outlook or the Mail application on Macs, but it will not work with computed that have Thunderbird set as their default client. I understand that users can save the form to their computer and manually attach it to an email if needed, but is there any workaround that would allow Thunderbird to cooperate? I have ensured that Thunderbird is the default mail application on the computer so I know that is not the problem.
    Thanks for any help.

    There seems to be some issues getting Thunderbird to behave properly - make sure it is setup as the MAPI client and that may help.
    I remember mucking around with it a while ago and never could get it to work, but haven't tried since the latest version of Thunderbird.
    I think it's a problem with Thunderbird's MAPI support - if you google "thunderbird mapi" you'll find a lot of info.

  • Using a submit email button and data format

    I have been reviewing the following document and have 1 question.
    http://www.adobe.com/devnet/livecycle/articles/lc_understanding_submit_tip.pdf
    Is there a way to customize the data format using a submit button?
    I may have the requirement to have end users submit data through an email submit button, but the client wants the data in the format Fieldname [delimiter of some sort] Fieldvalue, is this possible?  Would you need to manually edit the xml in the form to do this? Any pointers would be appreciated.
    The only options I see in the attributes of the email submit button are:
    XDP
    XML
    PDF
    URL encoded data
    Thank you,

    I have discussed this with Lori DeFurio, past Acrobat (and PDF) Developer Evangelist, and most recently, responsible for Customer & Field Enablement, who has informed me that this is possible and directed me to these forums for a resolution.
    Has anyone actually accomplished this?  Any information is appreciated.
    Thank you,

  • Edit Submit Email Message

    I've seen other people post this question, but cannot find an answer.  When a user completes and submits a form created in LiveCycle and distributed as a saved file (as opposed through Adobe) an email is generated that has the completed form attached and the following in the body of the email:
    Instructions to add this form to a responses file:
    1. Double-click the attachment.
    2. Acrobat will prompt you to select a responses file.
    THE PERSON FILLING OUT THE FORM DOESN'T NEED TO SEE THIS! How can the body of the message be changed to read something like, "Thank you for accepting my information, I look forward to seeing the results." or ANYTHING but the above, which is just confusing to the person completing the form??
    Thanks - I have spent a couple of hours researching this and can find no answer.
    TK

    No problem Terry!!
    Below the third email button is a textfield that displays the script. You can scroll up and down and examine it:
    This example is a bit involved, so I will try and break it down into sections:
    The fields
    You can see the textfields on the form for the name, email address, message, etc. The script looks at the value in these fields and uses this in the email script.
    Setting up the variables
    It can help to set up script variables. These are temporary holding points for values. These only exist for that script. For example vEmail, which will hold the email address.
    // First check if there are null values, then construct email using script
    var vEmail;
    var vSubject;
    var vBody;
    var vName;
    var vCC = "";
    var vFormat = subFormat.rawValue;
    var errorMessage = "You have not provided enough information:";
    Checking the textfields and preparing a custom error message
    The next section is a bit long. It basically works through all of the fields to make sure that they are not null. If they are then it adds to the error message. Otherwise it sets the value of the relevant variable to the value of the associated field. You will see the same approach being used for each field.
    // Check email address field and build error message
    if (emailAddress.rawValue == null)
    errorMessage = errorMessage + "\n - please provide an email address.";
    else
    vEmail = emailAddress.rawValue;
    // Check if there is a cc email address inputted
    if (ccEmail.rawValue != null)
    vCC = "&cc=" + ccEmail.rawValue;
    // vCC is put at the end of the mailto string because it starts with a &
    // Check subject line field and extend error message
    if (subjectLine.rawValue == null)
    errorMessage = errorMessage + "\n - please provide a subject line.";
    else
    vSubject = subjectLine.rawValue;
    // Check your name field and extend error message
    if (yourName.rawValue == null)
    errorMessage = errorMessage + "\n - please provide your name.";
    else
    vName = yourName.rawValue;
    // Check message line field, if null build a custom body message
    if (messageLine.rawValue == null)
    vBody = "Hi " + recipient.rawValue + ", \n\nThis email contains our submission in " + subFormat.rawValue + " format. \n\nPlease double click the attachment to open our submission. \n\nRegards, \n\n" + vName;
    else
    vBody = messageLine.rawValue;
    Get ready to send email
    We are nearly ready to send out the email. The last if statement checks that the minimum fields are not null. If any of the fields are null, then it displays the error message. Note that in the if statement the pipe (||) is JavaScript for OR.
    // If fields required for script are null, warn user and do not initiate email
    if (emailAddress.rawValue == null || subjectLine.rawValue == null || yourName.rawValue == null)
         xfa.host.messageBox(errorMessage, "Sending an email", 0, 0); // Send out a custom error message if any of these fields are null
    else
         // Everything is OK, send email
         event.target.submitForm({cURL:"mailto: "+ vEmail +"?subject=" + vSubject +"&body=" + vBody + vCC,cSubmitAs:vFormat,cCharset:"utf-8"});
    That's it!!!!
    The last line is the event.target.submitForm, which follows strict syntax for the variables. You can see that we are using the variables for the values.
    This script is in the click event of the submit button. You can view the script in the Script Editor. If this is not visible at the top of the LC Designer window, then you can access it from the Windows menu. If it is only one line high, then grab the bottom bar and make it bigger. You need to see about 10 lines at a time.
    The script is a bit involved, but don't be put off, there are a few methods here which are worthwhile exploring.
    Come back if you need help,
    Niall
    Assure Dynamics

  • Submit email button will not work

    I am trying to fill in a form and send it by email using Ubuntu 8.04 and Reader 8.1.2. I do not get the select email client window. It does work correctly on a Windows machine. It is a form I created in Adobe Professional 7.0. I would like to be able to create pdf fillable forms and have them submit through email using a Linux OS. Did I set something up wrong on the Linux machine, did I setup the form wrong, or is it possible to do this at all? Thanks for any ideas, Matt

    Hi Matt,
    I tried the same at my end with Ubuntu 8.04 and 7.10 . It works fine for me with form created in Acrobat Professional 7.x.
    Can you please try changing your SendMail Preferences by doing Edit > Preferences and then going on to SendMail. Try changing it to Evolution (or other mail client that you are using). Open the form again and click on the submit button.
    Please let us know if this works. If this does'nt then kindly mail me the form to vaibhavp at adobe dot com.
    Hope this helps.
    Thanks,
    Vaibhav

  • Submit Email

    I am using dreamweaver and just know basic stuff.
    How do I make a form that lets my visitors submit their email
    address and so it is emailed to me? I have no idea how to go about
    doing this. Go-daddy will do this but I don't want to pay, if I
    don't have to.
    Anyone have any simple suggestions?

    I think these people,
    http://www.bebosoft.com/,
    offer a free version of
    email forms.
    Craig
    "Extreme Maggie" <[email protected]> wrote
    in message
    news:fglici$32p$[email protected]..
    >I am using dreamweaver and just know basic stuff.
    >
    > How do I make a form that lets my visitors submit their
    email address and
    > so
    > it is emailed to me? I have no idea how to go about
    doing this.
    > Go-daddy
    > will do this but I don't want to pay, if I don't have
    to.
    >
    > Anyone have any simple suggestions?
    >

  • Button - Submit Email

    I am having a very difficult time creating a Button in LiveCycle Designer that works correctly as I want. I've read at least 10 articles and everyone of them dispute one another in method.
    Basically, I want a user to fill out this form and then hit the Email Submit Button and it sends that PDF to User1 and cc's User2, but I understand that the user that fills out the form must have Adobe Acrobat and not just Reader.
    So that leads me back to creating a regular button. When I do this I cannot find a JavaScript code that actually works to what I would like it to. All I want is a hardcoded To and CC, hardcoded and variable Subject, and hardcoded Message Body with the PDF attached. (Variable Subject would take fields from the document to create a line.) I would also like to rename the file sent with the same fields as used in the Subject line.
    Is this possible?
    LiveCycle Designer ES 8.2.1
    OS Win 7 64 Bit

    radzmar
    I wanted to share what I go to work, but we have decided to go another way since our users could not send the form with data through the submit button. I will just have them print to PDF and email to the correct people - clunky I know, but so is the lack of functionality with Adobe Reader.
    form1.NewProjectRequestForm.Button1::click - (JavaScript, client)
    var oDoc = event.target;
    oDoc.mailDoc({
    bUI: true,
    cTo: "[email protected]",
    cCc: "[email protected]",
    cSubject: "New Site Requested:" + " " + SiteCode.rawValue  + " - " + Description.rawValue + " -- " + "Requested by:" + " " + Requestor.rawValue + " @ " + RequestDate.rawValue,
    cMsg: "New Site Requested" + " " + SiteCode.rawValue + " - " + Description.rawValue

  • Submit email to more than one email address

    Hi
    Is there any way that when you click the submit form button it returns the form to two email addresses. When I try and put a second one in it says that the email is not in a valid format.
    Any ideas
    Thanks

    check the sample here:
    Chris.T, "Submit by Email function" #141, 13 Sep 2008 2:38 am
    it should help you I'd guess, however it uses a custom button with javascript rather than the default email button.

  • Problem with submit email

    i have a problem when i want to submit an email with the button i need that the pdf that i submit can not be changed by another person.
    do you know the solution?

    Is your problem resolved?
    Let me know if not and I can email the code.

Maybe you are looking for

  • How can I use the three new Logic drummers in Garage Band?

    I have the latest version of GarageBand and the latest version of MainStage, but I have not upgraded to the latest version of Logic. However, the three new drummers available with the latest update to Logic are now visible in Drummer for GarageBand.

  • Highlighting of field elements for update

    I am totally new to Oracle Forms so please excuse a possibly well know question. I’m converting a system from Forms 2 to 6i. One of the complaints I'm getting is that in Forms 2, when the user would click once within a field, the entire field’s d

  • Macbook OSX 10.6.8 pro wont connect to airport base station anymore

    all other machines have  no problems.  It worked earlier in the day-put to sleep-came back- now it can't something is wrong with network settings but nothing changed.  Two PC's are connected to same cable/Airport base station wirelessly with no issue

  • Screen black's

    Hey everyone, I did some tests with watching movies on my z1. I tried a 1080p mkv movie. Movie quality (sharpness and color) look great if you ask me. But... The blacks are a little disappointment to me. Dark scenes which should look black. Have this

  • Canon EF 400/5.6 Lens Profile

    My copy of LR4 does not have a profile for the Canon EF 400/5.6. There is one for the EF 400/4 IS DO and the EF 400/2.8 IS, but not for the 400/5.6. Does that mean that this lens doesn't need any corrections or just that nobody bothers?