Copy link to clipboard
Copied
Hope you can help with the following. The Submit button flashes but does nothing. I am a novice so any guidance is greatly appreciated.
var cToAddr = "[Remove Private Email address by Moderator]";
var cCCAddr = this.getField ("Email").value;
var cSubLine = this.getField("For (Facility Name").value + " Opp/Case # " + this.getField("OPP or Case #").value + "If available, Acct # " + this.getField("Rx Waste Account #").value;
var cBody = "Thank you for returning your completed Rx Checklist. \n\n" + "Please save a copy for your records.";
this.mailDoc({bUI: true, cTo: cToAddr, cCc: cCCAddr, cSubject: cSubLine, cMsg: cBody});
Copy link to clipboard
Copied
What does it say in the JavaScript console?
Copy link to clipboard
Copied
If you are referring to the window where the script is written and shows errors ,it does not show anything. It lets the code be saved. Using adobe DC.
Sent from my Verizon, Samsung Galaxy smartphone
Copy link to clipboard
Copied
Does it show anything after you click the button, though?
Copy link to clipboard
Copied
Nothing or I am I looking in the wrong place?
The button flashes and nothing happens.
Copy link to clipboard
Copied
Now press Ctrl+J and check if there are any error messages in the console window.
Copy link to clipboard
Copied
Kept cursor in console window, hit CTRL+J, nothing Then highlighted the script and did the same thing and nothing showed.
Is the script itself correct for what I want to accomplish?
Thank you for taking the time.
Copy link to clipboard
Copied
The script itself is correct, but if you misspelled one of the names of the fields, for example, then it won't work.
That's not a syntax error, but a run-time error, so it won't show up when you enter the code, only when you execute it.
Copy link to clipboard
Copied
Understood. Names in the fields rechecked, all correct.
Copy link to clipboard
Copied
Use the key combination of <Ctrl> + J to open the JavaScript console to see any run time errors.
Copy link to clipboard
Copied
You say “Adobe DC” but what is the actual full product name?
Copy link to clipboard
Copied
Adobe Acrobat Standard DC 2015 Release (Classic) | Version 2015.006.30394
Copy link to clipboard
Copied
Is there an email account set up (under Edit - Preferences - Email Accounts)?
Can you share the file with us (via Dropbox, Google Drive, Adobe Cloud, etc.)?
Copy link to clipboard
Copied
Just uploaded “JMLC Submit Button Not Working.pdf” to Adobe Cloud at:
https://cloud.acrobat.com/file/833fe768-c584-4a22-b711-c8ea3e80a041
Hope I did this correctly and it works.
I cannot thank you and the community for all your help.
Copy link to clipboard
Copied
I'm getting a 404 error when trying to access that link.
Copy link to clipboard
Copied
I am sending it as an attachment. Hopefully it makes its way to you.
Feel free to post it to the community since I was not successful.
Copy link to clipboard
Copied
You can't send attachments to the forum.
If you want to email it to me you can send it to try6767 at gmail.com.
Copy link to clipboard
Copied
Problem ended up being an incorrect field name in the code...
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more