Where do I put this? I tried it on the button itself, and I get the error window, but it still submits.
Also, will it highlight the validation errors? It doesn't when I place the script on the button itself.
You put it on the click event of the fake button ......if there are validation errors the messages will pop up.
If it is submitting anyways then you must have the command to execute the real submit button outside of the if statement.
Paul your PDF attachment sample is awesome, thanks really helped me out. I used the Fake Email button method with the drop down list and got it to work perfectly, however how can I add a Cc address after clicking the button using this method?
This is awesome! Question. I want to be able to mark an email as "rush" if a perticular date field is less than a week from today's date (the date I click the email button) I am thinking that I can use your last method of sending email where you fill in the blanks. But what I would do is hide them and have everying defaulted and have two subject lines and depending on the date field will depend on which subject line is shown. Problem is I don't know Java and I have no idea if this could work. Any ideas or insight would be appreciated.
There is nothing wrong with your technique but just so that you are clear
.....you have to test the date anyways and if it is less than a week you can change the subject line through code as well.
I tried but I could not get it to work. I would like if the contract term start date is less than 7 days from today that I get the RUSH email subject. I got the original email to work but I can't get the if else to work.
Any help would be greatly appreciated.
cMsg:"This is the field message"});
This woudl eliminate the need for those 5 additional fields.
Is it possible to extract the 5th example from your attachment from LiveCycle over to Adobe Pro?
This is exactly what im looking for as i already have my form set up to mailto: but i want it to also alter the subject depending on data choosen from a combobox!
Thanks in advance,
It seems that I'm haing similar problems to others on here. I've been through the examples you've created and tried to replicate them on my form but it's just not working. Could you take a look and let me know what I'm doing wrong. I just can't see it.
I've attached a copy of my form, and on the bottom of the 2nd page are the buttons I've created. I relly hope you can help I've spent so long looking at this. As you can probably guess I'm a complete novice whith this stuff.
Thanks in advance for you help, this thread is great and the work you put in is really appreciated.
you see how bad I am at this, I don't even know how to attach my form.. how can I attach my form to this post??
I to am creating a PDF form to be filled out and submitted via email using a submit button. I have it working very well - however now I have the user wanting some information from the form to be put on the subject line of the email when it is sent(As an example they would like the date and time of the meeting) - I am not sure how to do this as I am just learning how to make these forms. I am using Adobe liveCycle Designer ES 8.2. Thanks for your help
thank you for the demonstration of methods of email. Appreciated.
I have a slightly different issue - I have used the Acroform method and save the file as a static pdf and then I open the pdf in Acrobat x and save as Reader Extended PDF > Enable Additional Features, but when the email client opens up the name of the attachment has an additional Adobe Reader Acrobat Pro.pdf as an extension.
filename.pdf - Adobe Reader Acrobat Pro.pdf
Any help appreciated.
ps script (remove sensitive info)
cSubject: "text - " + Customer.rawValue + "",
cMsg: "Dear all,\n\nPlease text: " + Customer.rawValue + " .\n\nDelivery Consultant is: " + Consultant.rawValue + "\n\nTraining Consultant is: " + Trainer.rawValue + " \n\nKind regards\n\n" + Createdby.rawValue + ""
the additional extension is added always when you send a form without saving it before.
This behavior has finally been changed in Acrobat/Reader XI, but in previous versions you either have to save the form before mailing or you add an additional script in front of your script, to reset the dirty flag.
event.target.dirty = false;
Hi - thank you for the fast reponse.
I was using an action on a button to save as:
//+ GENERATED - DO NOT EDIT (ID:2B84A341-10AD-463B-B2C8-0D8150CE8FEB CRC:4172305489)
//+ Type: Action
//+ Result1: SaveForm()
//+ Node1: form1.#subform.Button1
//+ Condition1: Button("$Node1","click")
//+ ActionName: Button1.click
instead of going to the menu as I wanted a better user experience...
event.target.dirty = false;
adding this to my email script worked perfectly - thank you.
Not sure if you're still in the forums as this is a fairly old message but this is the exact function that I'd like my Adobe Form to have with submitting the Subject=Field. Problem is that I only have Adobe Standard 9 and when I try to open your sample (Message 24), it doesn't allow me to edit and show me the properties of the script you placed in the button.
Is there anyway that you might be able to post the script from this example?
Europe, Middle East and Africa