Skip to main content
Known Participant
July 6, 2018
Question

Adding additonal javascript acction to existing javascript on PC with ADOBE Acrobat PRO XI

  • July 6, 2018
  • 10 replies
  • 543 views

PC, Windows 10, Adobe Acrobat PRO XI

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

}

this is the script currently in use and is functioning as desired.  I want to add an action that when the approver hits the submit button it will cc: the email address entered in the EMAIL field completed by the originator of the form?

This topic has been closed for replies.

10 replies

Bernd Alheit
Community Expert
Community Expert
July 6, 2018

Why do you create a new thread?

Your old thread:

ADOBE JAVASCRIPTS

Known Participant
July 6, 2018

I got one response to the older one however when I informed them I was on a PC and that the response was not working as the response was for a MAC the replies stopped....  So I thought rewording it with the computer info would get me a correct solution.

Bernd Alheit
Community Expert
Community Expert
July 6, 2018

The posted code will work on Mac and PC.