Skip to main content
Participant
February 12, 2025
Question

Create a "Submit Form" button that prompts an email address

  • February 12, 2025
  • 2 replies
  • 157 views

Hi all

Please can you help.  I want to create a "Submit Form" button that when clicked, prompts the user to add an email address; basically adding the pdf as an attachment to an email.  The form won't be sent to the same address every time and I'm struggling to find a solution. Thank you 🙂

2 replies

Thom Parker
Community Expert
Community Expert
February 12, 2025
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
PDF Automation Station
Community Expert
Community Expert
February 12, 2025

var emailAddress=app.response("Enter the email address:");
if(emailAddress)
{
this.mailDoc({cMsg: "This is the email body.", cSubject: "This is the email subject.",
cTo: emailAddress})
}