Skip to main content
ezloves2smile
Known Participant
November 4, 2020
Answered

Acrobat - email populate? app message?

  • November 4, 2020
  • 2 replies
  • 3585 views

Hello, please see attached pdf file. What I am trying to do is be able to "copy and paste" page 2 of 2 to include the paragraph AND text fields entered by the user in page 1 (page 2 makes it read only). I plan to copy and paste it into an email which will then be sent out - unless the copy and paste feature can be cut out all together and simply have the entire text in page 2 be emailed. Hope this makes sense? and thank you all for your help!

 

Moved from Using the Community (which is about the forums) to a better forum... Mod
To find a forum for your program please start at https://community.adobe.com/

This topic has been closed for replies.
Correct answer ls_rbls

Yes - its just to copy the important paragraphs.

 

Like lets say:

 

Hello (textbox 1), today is (date textbox) we will do this tomorrow at (time box) yada yada yada yada...

 

So i need it to copy the whole bolded area to include input texts. If they can copy and paste it, they can just open a draft in their email (be in gmail, outlook or whatever email theyre using) and they basically do their own draft email. Hope that makes sense?


If that is the case, then most likely yuo want to create multi-line textfield and make it read-only.

 

And use the same script modified slightly as a custom calculation script in the multi-line textfield like this:

 

event.value = "Good morning " + this.getField("name3").valueAsString + ",\n\nThis is a paragraph that will continue. Add date here " + this.getField("date3").valueAsString +" and as it continues it will go on, enter identifying number of individual here "+ this.getField("identity3").valueAsString+" and finally enter the time here "+  this.getField("time3").valueAsString+" .";

 

The slide below shows the end result which can then be copied and pasted in an email draft:

 

 

Is this what you're asking?

2 replies

ezloves2smile
Known Participant
November 4, 2020

Hello Try67, all I can say is WOW!!! - I'm a semi tech saavy person but next to you I feel like a caveman scratching my head! Very impressive work! I used your code, added the paragraphs and then added the "+" sign to add the additional fields I needed. Thank you! Truly! I know @ls_rbls was working hard on this too and I sincerely and whole heartedly appreciate the two of you!!! Both of you are truly amazing and kind-hearted individuals!!!

ezloves2smile
Known Participant
November 4, 2020

1 more thing Try67... and sorry to keep bugging. Is there a way to have the email load as a draft? It asks for my email but 3-5 of us may use the form and each one will email from their own. I didnt want to do a form and in the background change their emails and basically give them each 1 individual form? hope that makes sense?

ezloves2smile
Known Participant
November 4, 2020

Or if there is a way I can add the textfield with your code as a "readonly" and just copy and paste it so I can then add it to an email. Or any other user can copy / paste and add it to their email draft. Hope that makes sense?

try67
Community Expert
Community Expert
November 4, 2020

The text on that page is not even real text. It's just an image.

You will need to hard code all of it into your script. Something like this:

 

var msgBody = "Good morning " + this.getField("name3").valueAsString + ",\n\nThis is a paragraph...";

this.mailDoc({cTo: "ezloves2smile@server.com", cMsg: msgBody})

ezloves2smile
Known Participant
November 4, 2020

Hi Try67, thank you for the prompt reply... this might sound incredibly dumb and please excuse my massive ignorance!!!

 

So in your code... where it says "Good morning + (textbox id imagine?) and then after the ,\n\nThis is a pragraph - the bolded this is a paragraph would continue to be the rest of the message? what about in between fields? - will it add them the same? and I cant thank you enough! What you're saying makes perfect sense but I want to make sure i dont mess up anymore