[Thread Edited By Adobe]
/*Don’t forget to meet and greet your fellow peers virtually by telling them about yourself here.
Go ahead and to it now: https://adobe.ly/3eDnB4v */
Actual Question:
Solved! Go to Solution.
You have the script set for FormCalc but that script is Javascript. In the script editor change the language dropdown (right hand side) to Javascript.
Paul
Got it . thanks. Anyway to cause the required fields to be highlighted in not valid?
Views
Replies
Total Likes
I figured all of it out. Thanks for all your help Paul!!
Views
Replies
Total Likes
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?
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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.
Paul
Views
Replies
Total Likes
Thanks Paul! The problem is my idea may be good - i just don't know how to write the code to do it. Any chance you can help
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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
Views
Replies
Total Likes
WOW!!! Thanks TONS Paul! I had no idea. I think it is time for me to sign up for a java script class.
Don't know how to thank you!
Jodi
Views
Replies
Total Likes
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,
S
Views
Replies
Total Likes
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??
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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)
Views
Replies
Total Likes
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;
Views
Replies
Total Likes
Hi - thank you for the fast reponse.
I was using an action on a button to save as:
instead of going to the menu as I wanted a better user experience...
adding this to my email script worked perfectly - thank you.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Thanks very much for the terrific examples document This is a great help to me. - Matt
Views
Replies
Total Likes
I can grab it for you, Alwin....I doubt that Paul would mind. Which of the methods are you needing a script for?
Views
Replies
Total Likes
Thank you so much for the sample it is fantastic. I am new to LiveCycle, I was wondering is there a way to turn off the javascript window alert? When the fake email button is clicked i recieve the folowing pop up "mailto:user2@test?subject=This is the subject"
Thank you
Views
Replies
Total Likes
I figured it out, for any newbies out there with the same problem you can comment out the following line like so in the fake email button script,
//app.alert(RealEmail.event__click.submit.target);
This will remove the alert.
Views
Replies
Total Likes
I figured it out, for any newbies out there with the same problem you can comment out the following line like so in the fake email button script,
//app.alert(RealEmail.event__click.submit.target);
This will remove the alert.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies