Copy link to clipboard
Copied
My Submit button has mailto: email address in the Action tab. When someone presses the Submit button I want a message box to popup saying something like; “Have you checked your form? Do you want to continue with the Submit? OK – CANCEL. I have tried everything and nothing works. If I use javascript which would contain my email in it would I still need to use the Submit button that has mailto: in it. I am new at this. Does anyone have javascript I can try?
Copy link to clipboard
Copied
If you use script to submit then you don't need it also in a button as mailto.
Take a look at the link, focus on 'Figure 4' I belive it's exactly what you ask for.
https://acrobatusers.com/tutorials/popup_windows_part1/
Copy link to clipboard
Copied
Nesa,
I tried that and got an error:
if(nRslt == 4) {
[PERSONAL INFORMATION REMOVED PER POLICY - THIS IS AN OPEN FORUM, NOT ADOBE SUPPORT, PLEASE DO NOT POST PERSONAL INFORMATION]
Copy link to clipboard
Copied
There is no need to reinvent the wheel.
As long as the fields that use the "Required" property are not all filled in, Acrobat will refuse to send the form and display a message to the user explaining why.
Copy link to clipboard
Copied
It's not reinventing the wheel, though. They want to display their own custom message to the user, and let them decide for themselves whether to continue or not. The required fields validation doesn't do either.
Copy link to clipboard
Copied
You can use this code to do it:
if (app.alert("Have you checked your form? Do you want to continue with the Submit?",2,2)==4)
this.mailDoc({cTo: "sbc707@email.com", cSubject: "Email subject line goes here", cMsg: "Email body goes here"});
You must remove all other commands associated with the button if you want it to work properly.
[Edit: I moved my reply from your duplicate post about this subject here. Please do not create multiple posts for the same question]
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Check your default browser. A new tab should have opened where you need to log in to your email account.
You can also add it under Edit - Preferences - Email Accounts and then it should work more smoothly.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more