Copy link to clipboard
Copied
On a Submit Button, the Action property is set to "Submit a form." Edit does not let me change the message returned in the resulting email. The email returns:
Form Returned: Procedure Review Form - 2020 1115 TD Rev 0.pdf
The attached file is the filled-out form. Please open it to review the data.
I need to include a reminder to the user (email sender) to "attach associated procedure document" to be returned with the filled form. I cannot find where the above standard message is being generated.
Copy link to clipboard
Copied
What you see is the default text. You can specifiy a custom subject, and also body content if you want. You need to specify it in the button that send the form.
But if you only want to alert the users you can add a javascript along with your send form button.
app.alert("Attach associated procedure document");
mailto:info@youremail.com?subject=your custom subject
mailto:info@youremail.com?subject=your custom subject&body=your custom body content.
Copy link to clipboard
Copied
What you see is the default text. You can specifiy a custom subject, and also body content if you want. You need to specify it in the button that send the form.
But if you only want to alert the users you can add a javascript along with your send form button.
app.alert("Attach associated procedure document");
mailto:info@youremail.com?subject=your custom subject
mailto:info@youremail.com?subject=your custom subject&body=your custom body content.
Copy link to clipboard
Copied
Under "Actions," I chose "Run a JavaScript." I select "Add" and the JavaScript editor opens. I copied and pasted the script you provided:
app.alert("Attach associated procedure document");
mailto:info@youremail.com?subject=your custom subject
mailto:info@youremail.com?subject=your custom subject&body=your custom body content.
I made no edits, selected ok, and an error message results. It says "SyntaxError: missing; before statement 5: at line 6"
I tried adding semi-colon at line 6, but it does not resolve. The message remains the same. Any ideas? Thank you!
Copy link to clipboard
Copied
You’re trying toput all this is a javascript. You need to have two Actions.
First is the alert using a Javascript, the second is your submit form action.
Copy link to clipboard
Copied
Jean-Claude, thank you but I cannot get the script to run. I deleted the "submit form" action. Selected "Run a
JavaScript," pressed "Add," and pasted your script exactly. When I press OK, the image below results. I do not find a way to resolve the script error. The error message and script are shown below:
Copy link to clipboard
Copied
The javascript is for the alert only...
app.alert("Attach associated procedure document");
Copy link to clipboard
Copied
Use the Submit A form for action to add your email and subject...
Copy link to clipboard
Copied
Copy link to clipboard
Copied
JR and Jean-Claude! As a newbie, I misapplied your direction. Jean-Claude, you led to my success with this form. Ultimately, I did exactly what JR's image shows. It worked. I subsequently modified it for my purpose. As a bonus, I've learned how to add an alert and incorporated it as well. I really appreciate the patience and help you provided in this forum. I learned much more than meets the eye from the aid you provided. Thank you! All is resolved.
Copy link to clipboard
Copied
Can the font size and made bold be changed in the default message from Submit Form?
Copy link to clipboard
Copied
No. It can only create a plain-text message, without any formatting.
Copy link to clipboard
Copied
Thank you for your quick response.
Copy link to clipboard
Copied
[MOVED TO THE ACROBAT DISCUSSIONS]
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more