Hey Paul,
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.
Thanks!
Jodi
Hi Paul,
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.
Thanks!
Jodi
You can't simply subract two dates like you were doing .....you have to get a date object and then derive the number oif milliseconds from a set point. Once you have that then you can subtract milliseconds from milliseconds and get a difference. Then convert that back to days to get a diff. Once all that is done then you can do your test. I modified your code to show you . It is much easier in formclac but you have your current code in javascript so I did it in that language. I also added a couple of app.alerts in the if statement to make sure we were getting into the places. You also had syntax errors in the if statement as well there was no fldCC field on the form (I added one). Note that you do not need those fields to hold the values that you want tot set. Why not simply set them in the code? It woudl look like this:
oDoc.mailDoc({
bUI: true,
cTo:emaildd@host.com,
cCC: fldCC.rawValue,
cSubject:"RCARF",
cMsg:"This is the field message"});
This woudl eliminate the need for those 5 additional fields.
Paul
Hi Paul,
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??
Hi Paul
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
Hi Paul,
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.
ie
filename.pdf - Adobe Reader Acrobat Pro.pdf
Very confusing!
Any help appreciated.
ps script (remove sensitive info)
oDoc.mailDoc({
bUI: true,
cTo: "upload.xxxxxxxx@u.box.com",
cCc: "support@xxxxxx.com; sales@xxxxxx.com; accounts@xxxxxx.com",
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 + ""
});
Hi,
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[0].#subform[0].Button1[0]
//+ Condition1: Button("$Node1","click")
//+ ActionName: Button1.click
app.execMenuItem("SaveAs");
//-
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.
Hi Paul,
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?
Cheers,
Alwin
North America
Europe, Middle East and Africa
Asia Pacific