Skip navigation

Drop Down List With Multiple Email Addresses

Dec 15, 2008 11:24 AM

  Latest reply: jlee9911, Jan 27, 2014 8:12 AM
Replies 1 2 Previous Next
  • Currently Being Moderated
    Aug 23, 2010 12:53 PM   in reply to (Cathy_Trudeau)

    Could you "Just sent it" to me as well?

    I'd appreciate it.

    kevarch312@gmail.com

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 23, 2010 9:17 PM   in reply to (Cathy_Trudeau)

    Hi Paul,

     

    Thanks for posting your form and it works great.

     

    However, when I try to implement only part of your form (dropdownlist with binding emails, Fake email Button with Click event and invisible RealEmail button) with LifeCycle Desiger ES 8.2, it just didn't work when opening it in Reader. Is it because I don't have Reader Entensions?

     

    If it's true, can I say that any pdf forms created with LC Designer which involves JavaScript or FormCalc need to have Reader Extensions to extend the right to reader so that they could use it with only Acrobat Reader?

     

    Is Acrobat Pro able to achieve same function without using Reader Extension?

     

    Thanks.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 24, 2010 12:11 AM   in reply to StevePlus

    Hi,

     

    If the user has the full version of Acrobat, then the email button will work. This is because the email button saves the form first and then attaches it as a PDF to the email.

     

    Because users with Reader cannot normally save a form, the email button fails silently.

     

    There are two ways to reader enable a form to allow users with Reader to be able to save the form (and therefore allow the email button to work):

     

    1. Apply rights using the server product LiveCycle Reader Extensions ES2.
    2. Apply  rights using Acrobat Standard v9 or Acrobat Professional v7 or v8.

     

    Here is a summary of features that are available depending on whether the form is enabled and how it was enabled: http://assurehsc.ie/blog/index.php/2010/05/using-livecycle-forms-in-ac robat-and-reader/

     

    2009-10-14 LiveCycle Forms in Acrobat and Reader.png

     

    Another option is to set the email button to return the data as a XML file (instead of PDF). Users with Reader can achieve this without Reader Enabling the form.

     

    Good luck,

     

    Niall

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 24, 2010 7:00 AM   in reply to Niall O\'Donovan

    Thank you very much for your reply, Niall.

     

    I could Reader enable Paul's form and my form in Acrobat Pro. While Paul's form can be saved and the email button works with Reader, my form CAN only be saved in Reader but the Submit (email) button has no response.

     

    I tried to click the Submit button in Acrobat Pro, the JavaScript Debugger returns "DropDownList1 is not defined".

     

    Based on your chart, my form should be able to be submitted. Where might be the problem?

     

    BTW, submitting Pdf form is preferred in our situation.

     

    Thanks!

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 24, 2010 7:12 AM   in reply to StevePlus

    Hi,

     

    It looks like the script is referencing an object called "DropDownList1", but that this object either:

    - does not exist;

    - exists, but has a different name; or

    - exists, but DropDownList1 is in a different subform to that of the button.

     

    When referencing an object you need to give a sufficiently full reference.

     

    Niall

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 24, 2010 7:50 AM   in reply to Niall O\'Donovan

    Thanks for your immediate response, Niall.

     

    I tried to compare what Paul did with mine. Seem I did exactly the same thing except that my form Hierarchy looks messy whereas Paul's is very clean.

     

    Does it matter? Here is the initiation statement in JavaScript for the dropdown and it give you a clue about my hierarchy:

     

    TopmostSubform.Page1.Paragraph[1].DropDownList1::initialize - (JavaScript, client)

     

    Should I clean my hierarchy to make it look more like Paul's? Right now I have many Paragraphs in Page1 (DropDownList1 and the buttons are on different Paragraphs) but I only have one subform which is the TopmostSubform. Any references for cleaning the Hierarchy?

     

    Sorry for the trouble.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 24, 2010 12:03 PM   in reply to StevePlus

    Hi,

     

    First off, it looks like you created multiple subforms called 'Paragraph'. LC Designer keeps track of the various instances of these using a zero-based instance number Paragraph[1]. This is OK, but makes referencing objects more difficult, because LC has to resolve the node for the object.

     

    So I would recommend that you name objects (subforms, fields, etc). So that you can easily reference them in script.

     

    TopmostSubform is the name of the root node. This name indicates that you imported an existing Word document or PDF to start off the form. This is OK, but some of the normal LC functionality will not be available.

     

    The DropDownList1 object is in the second instance of the Paragraph subform.  Therefore if you button is on Page1, it will need to include the subform name in its script.

     

    For example if you left the names as they currently are (several instance of the same name), the script would look like this:

     

    xfa.resolveNode("TopmostSubform.Page1.Paragraph[1]").DropdownList1 ...

     

    But if you gave the subforms a unique name the script would be much easier, say 'myParagraph':

     

    myParagraph.DropDownList1 ....

     

    Hope that helps,

     

    Niall

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 24, 2010 1:11 PM   in reply to Niall O\'Donovan

    Super! It works beautifully. I used your second suggestion.

     

    I do greatly appreciate your time and effort in helping this, Niall.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 24, 2010 1:28 PM   in reply to StevePlus

    No problem, glad you got it working!

     

    N.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 12, 2010 9:56 AM   in reply to pguerett

    Paul Could I get a copy of that too .

    email: macadamia-101694@hotmail.com

    Thanks

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 14, 2010 6:13 AM   in reply to bobtaylor24

    It has already been attached earlier in this thread ...Feb 11 to be exact.

     

    Paul

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 15, 2010 10:38 AM   in reply to pguerett

    Could you also send it to me, thanks david.plutto@bms.com

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 12, 2011 8:49 AM   in reply to (Cathy_Trudeau)

    Hi Paul or anyone,

     

    Kindly send me a copy of your sample script for the dropdown with multiple email addresses, or if anyone can send me a copy of Paul's samples, it would be greatly appreciated.

     

    My email is archie.pablo@esa.sccgov.org.

     

    Thanks so much.

     

    Archie

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 20, 2011 6:12 PM   in reply to (Cathy_Trudeau)

    Paul, would you mind to send me a copy as well. Thanks in advance. Haagendazs.

    diy_haagen_dazs@yahoo.com.hk

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 21, 2011 9:26 AM   in reply to Haagen Dazs

    Here you go!

     

    Good luck!

     

    Archie

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 25, 2011 5:18 AM   in reply to achillespablo

    I will post it here ....

     

    Paul

    Attachments:
     
    |
    Mark as:
  • Currently Being Moderated
    Oct 7, 2011 4:09 AM   in reply to pguerett

    Hi, I am really struggling with this and pasting the script where I believe that it should go but it force closes my Adobe Designer, is it possible that you could look at my form for me please?

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 7, 2011 6:37 AM   in reply to Easygeezer

    Sure email the form to LiveCycle8@gmail.com and include a description of what you are trying to do ....I will look at it when I get a chance.

     

    Paul

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 29, 2011 3:46 PM   in reply to BJ Cochran 6

    Hi Barb,

     

     

    I am creating almost same form like yours, time off request form.

    I like to setup the drop down list of managers to select then the summit button will send to the selected manager's e-mail.

    Can you share how you created this?

    I am new for this program and need all the help I can get.

    Thanks you very much in advance.

    My email is jl9911@gmai.com

     

    jlee

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 31, 2011 10:09 AM   in reply to jlee9911

    Hi JLee,

     

    Geeez . . . I created the form more than a year ago, also new to LCD and Acrobat forms, and it's not something I do on a regular basis so the infrequency often requires I figure out what I previously did all over again. I pulled my hair out for weeks with this one, all trial and error. If I recall, what you're trying to do requires a hidden "real email" button, I've attached a page of instructions I got from the same message board that was a key to getting it to do what I wanted (email Options file attached)

    .

    I also often referenced two books, PDF forms Bible and Creating Dynamic Forms with Adobe LiveCycle Designer (the latter being most helpful and has a CD with Demo Files that you can dig through for comparison and script), several online articles and Adobe Designer Help, part of which I printed to keep in a  3-ring binder for reference. I've attached some of them along with my form so you can try to decipher the madness to my methods :).

     

    Chapter 6 from Cheridan Smith's book also helpful:  http://www.adobe.com/devnet/livecycle/articles/advanced_formdesign.htm l

     

    Though not easy or direct, I hope some of this is helpful to you.

     

    ~ B.

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 31, 2011 10:35 AM   in reply to BJ Cochran 6

    Thanks Barb, I will do the research.

    jl

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 21, 2012 11:28 AM   in reply to pguerett

    Hi Paul, would you send me the same sample script that you sent to Cathy? Here's my email.

     

    Thank you,
    Meg

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 21, 2012 11:16 AM   in reply to (Cathy_Trudeau)

    Hi Meg,

     

    Paul's example is already posted on this thread, here: http://forums.adobe.com/message/3047322#3047322.

     

    Good luck,

     

    Niall

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 21, 2012 12:01 PM   in reply to Niall O\'Donovan

    Hi Niall, the form Paul posted wasn't editable; therfore I couldn't get the script. I'm new to this forum and I'm no expert. Could you direct me how to get the info I need from the pdf?

     

    Thank you.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 21, 2012 12:17 PM   in reply to megbrakhaus

    Hi,

     

    You will need to open Paul's form in LiveCycle Designer. This is a separate program to Acrobat, but it comes bundled with most versions of Acrobat for Windows. LC Designer is not available for the Mac.

     

    Niall

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 21, 2012 12:40 PM   in reply to Niall O\'Donovan

    Gotcha! I have access to PC. Thanks for your help Niall.

    Meg

     
    |
    Mark as:
  • zeromullen
    5 posts
    Feb 12, 2013
    Currently Being Moderated
    Mar 8, 2013 6:52 AM   in reply to pguerett

    Can you please send me this example as well?

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 25, 2014 8:59 AM   in reply to pguerett

    Please send me a copy of how to do this.

     

    Thanks

    mburke107@bellsouth.net

     
    |
    Mark as:
  • zeromullen
    5 posts
    Feb 12, 2013
    Currently Being Moderated
    Jan 25, 2014 9:00 AM   in reply to mewburke

    I will have to send it to you on Monday.

     

    Sent from Yahoo Mail on Android

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 25, 2014 9:09 AM   in reply to zeromullen

    Many thanks!

     
    |
    Mark as:
  • zeromullen
    5 posts
    Feb 12, 2013
    Currently Being Moderated
    Jan 27, 2014 7:30 AM   in reply to mewburke

    I have attached a copy of my form with all names and addresses removed so that you can see the scripting on the back end. You have to have Adobe LiveCycle Designer. It comes with Adobe Pro. Follow the steps below and you will see all of the back end scripting for all of the buttons and drop downs. There are many buttons with custom scripts. The dates next to the signatures also auto-populate with the current date once the digital signature is placed. The clear form button will bring up a prompt for you to confirm versus just deleting everything on the form by accident. I have many more scripts that I have written if you need anything else.

     

    Instructions:

    1.       Open the form in Adobe LiveCycle.

    2.       On the menu bar under window make sure that

    script editor is checked.

    3.       The script editor should be on the top tool bar

    and says “Show”

    4.       Click on the drop down for requestor

    5.       On the right side under object and field you can

    copy and paste a list of names from Excel into the list box.

    6.       Under the binding tab in the value input the

    corresponding email for each person.

    7.       For the Admin officer, Approving official, Card

    Holder, GL for Chemicals and receiver repeat steps 4-6

    8.       Click on the Send to Admin Officer button

    9.       There should be a blue box next to “show” on the

    script editor. Using that blue box drag the script editor to the middle of the

    document.

    10.   You should see the scripting for this button. I

    should look like this.

     

            //

    First check if there are null values, then construct email using script

            varvEmail =  "";

            varvSubject = "Purchase Order Request";

            varvBody = "Attached to this email is a Purchase Order

    Request.";

            varvName = "";

            varvCC = "";

            varvFormat = "PDF";

     

            if(form1.Form.PLGLDC.rawValue == null)

            {

            

       errorMessage = errorMessage + "\n - Please select who you want to send this

    form to.";

            }

           

    else

            {

           

         vEmail = form1.Form.PLGLDC.rawValue;

            }

       

            if(form1.Form.ChemicalYes.rawValue == 0)

            {

           

        // Everything is OK, send email

            }

           

    else

            {

           

        vCC = "@nist.gov";form1.Form.GLChem.value == form1.Form.PLGLDC.value

            }

     

            //

    If fields required for script are null, warn user and do not initiate email

            if(form1.Form.PLGLDC.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 + "&cc=" + vCC,cSubmitAs:vFormat,cCharset:"utf-8"});

    }

    11.   Inside the parenthesis where I have highlighted

    input the email address for your cispro manager.

    12.   Then click the save button.

    13.   Open the form in adobe pro

    14.   Under file hover over save as

    15.   Hover over reader extended PDF

    16.   Click Enable Additional Features.

    17.   Save your form in your preferred destination.

    18.   All done.

     

    Regards:

    Elijah Gunn

    303-217-1866

    gunn.elijah@yahoo.com

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 27, 2014 8:12 AM   in reply to (Cathy_Trudeau)

    Hi Paul,

    I am trying to do exactly what you have done, drop down list of 10 people and when select person's name it will finsih sending to the person's email.

    Can you please send me the setup?  My email address is jl2402@columbia.edu.

    Thank you very much.

     

    Jean

     
    |
    Mark as:
1 2 Previous Next
Actions

More Like This

  • Retrieving data ...

Bookmarked By (1)