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

ADOBE JAVASCRIPTS

New Here ,
Jun 18, 2018 Jun 18, 2018

I currently have this script running :

var patternEmpty = /^\s*$/;

var strMissing = "";

if(patternEmpty.test(this.getField("1st
purchaser").value))

     strMissing =
"1st purchaser";

  { // All is ok,
submit the data

  1. console.println("All form data ok");

  }

if(strMissing.length)

{// Got an error

  1. app.alert("Please complete 1st Purchaser: " +
    strMissing);

}

NEED this

var cToAddr =
"
Pcardreceipts@ifas.ufl.edu";

var cCCAddr =
this.getField("Email").value;

var cSubLine = " P-CARD FORM SUBMITTED FOR PROCESSING";
  1. this.mailDoc({bUI: true, cTo: cToAddr, cCc: cCCAddr,
    cSubject: cSubLine,});

I want to merge script below into the above script or should it be written as one script and if any recommendations would be appreciated....?

var cToAddr =
"
Pcardreceipts@ifas.ufl.edu";

var cCCAddr =
this.getField("Email").value;

var cSubLine = " P-CARD FORM SUBMITTED FOR PROCESSING";
var cBody = " Thank you for funding this purchase.\n" + "We Appreciate your support";
  1. this.mailDoc({bUI: true, cTo: cToAddr, cCc: cCCAddr,
    cSubject: cSubLine, cMsg: cBody});
TOPICS
Acrobat SDK and JavaScript , Windows
2.6K
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

correct answers 1 Correct answer

Community Expert , Jul 06, 2018 Jul 06, 2018

I'll give you a hint: JavaScript is case-sensitive...

Translate
New Here ,
Jul 06, 2018 Jul 06, 2018

I don't see any difference. 

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 ,
Jul 06, 2018 Jul 06, 2018

P and p is not the same.

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 ,
Jul 06, 2018 Jul 06, 2018

I'll give you a hint: JavaScript is case-sensitive...

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 ,
Jul 06, 2018 Jul 06, 2018

I am beginning to figure that out as well.....  arrrrgh

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 ,
Jul 06, 2018 Jul 06, 2018
LATEST

Thank You all that replied and for pointing out my blindness (jk) I really appreciate your assistance..... it is now working as desired.

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