Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Submit button flashes but does not execute the script

New Here ,
Feb 04, 2018 Feb 04, 2018

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});

TOPICS
PDF forms
541
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 05, 2018 Feb 05, 2018

What does it say in the JavaScript console?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 05, 2018 Feb 05, 2018

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 05, 2018 Feb 05, 2018

Does it show anything after you click the button, though?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 05, 2018 Feb 05, 2018

Nothing or I am I looking in the wrong place?

The button flashes and nothing happens.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 05, 2018 Feb 05, 2018

Now press Ctrl+J and check if there are any error messages in the console window.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 05, 2018 Feb 05, 2018

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 05, 2018 Feb 05, 2018

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 05, 2018 Feb 05, 2018

Understood. Names in the fields rechecked, all correct.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 05, 2018 Feb 05, 2018

Use the key combination of <Ctrl> + J to open the JavaScript console to see any run time errors.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 05, 2018 Feb 05, 2018

You say “Adobe DC” but what is the actual full product name?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 05, 2018 Feb 05, 2018

Adobe Acrobat Standard DC 2015 Release (Classic) | Version 2015.006.30394

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 05, 2018 Feb 05, 2018

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.)?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 05, 2018 Feb 05, 2018

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 05, 2018 Feb 05, 2018

I'm getting a 404 error when trying to access that link.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 05, 2018 Feb 05, 2018

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 05, 2018 Feb 05, 2018

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 05, 2018 Feb 05, 2018
LATEST

Problem ended up being an incorrect field name in the code...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines