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?
Is Acrobat Pro able to achieve same function without using Reader Extension?
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):
- Apply rights using the server product LiveCycle Reader Extensions ES2.
- 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-acrobat-and-reader/
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.
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.
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.
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.
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.
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.
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. 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:
But if you gave the subforms a unique name the script would be much easier, say 'myParagraph':
Hope that helps,
Super! It works beautifully. I used your second suggestion.
I do greatly appreciate your time and effort in helping this, Niall.
No problem, glad you got it working!
It has already been attached earlier in this thread ...Feb 11 to be exact.
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 firstname.lastname@example.org.
Thanks so much.
Here you go!
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?
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 email@example.com
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.html
Though not easy or direct, I hope some of this is helpful to you.
Thanks Barb, I will do the research.
Hi Paul, would you send me the same sample script that you sent to Cathy? Here's my email.
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?
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.
Gotcha! I have access to PC. Thanks for your help Niall.
Can you please send me this example as well?
I will have to send it to you on Monday.
Sent from Yahoo Mail on Android
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.
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
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
varvName = "";
varvCC = "";
varvFormat = "PDF";
if(form1.Form.PLGLDC.rawValue == null)
errorMessage = errorMessage + "\n - Please select who you want to send this
vEmail = form1.Form.PLGLDC.rawValue;
if(form1.Form.ChemicalYes.rawValue == 0)
// Everything is OK, send email
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
// Everything is OK, send
"+ 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.
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 firstname.lastname@example.org.
Thank you very much.
Re: email_Options.pdf sample file
Sorry about several questions at once, but I'm really new to LiveCycle Designer ES2 (just a couple of weeks).
How is the Real Submit button programmatically clicked?
Is there no way to do what the Fake Email and Real Email buttons do with a single button?