Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Email Submission Button not recognizing email address

Avatar

Avatar
Validate 1
Level 1
deanr91271723
Level 1

Likes

0 likes

Total Posts

31 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
deanr91271723
Level 1

Likes

0 likes

Total Posts

31 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
deanr91271723
Level 1

27-04-2017

I have generated several Fillable Forms using Adobe LiveCycle.

I have placed a Button on the page and added the follow Script under Click.

The same script was used on a prior page and works fine but this page will not recognize the email address, error message shown at bottom of page.

I have opened the page using Adobe Acrobat XI Pro and saved as Save as other, Reader extended, Enable More Tools.

Script used:

form1.Data.Button1::click - (JavaScript, client)

// This is the form return e-mail. Its hardcoded

// so that the form is always returned to the same address

// Change address on your form

var cTo = "123@123.com";

// First, get the client CC e-mail address

var cCCAddr = xfa.resolveNode("ClientEmail").rawValue;

console.println("Client: " + cCCAddr);

// Now get the beneficiary e-mail only if it is filled out

var cBenAddr = xfa.resolveNode("BennyEmail").rawValue;

console.println("Benny: " + cBenAddr);

if(cBenAddr != "")

    cCCAddr += ";" + cBenAddr;

// Set the subject and body text for the e-mail message

var pn = xfa.resolveNode("polisnummer").rawValue;

var cSubLine = "Form X-1 returned from client " + pn;

var cBody = "Thank you for submitting your form.\nSave the mail attachment for your own records";

// Send the form data as an PDF attachment on an e-mail

event.target.mailDoc({

      bUI: false,

      cTo: cToAddr,

      cCc: cCCAddr,

      cSubject: cSubLine,

      cMsg: cBody,

  });

Error Message:

TypeError: xfa.resolveNode("ClientEmail") is null

7:XFA:form1[0]:Data[0]:Button1[0]:click

does anyone have a possible solutions?

Dean R

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Boost 3
Level 2
Karl_Heinz_Krem
Level 2

Likes

3 likes

Total Posts

38 posts

Correct Reply

3 solutions
Top badges earned
Boost 3
Boost 1
Affirm 3
Affirm 1
View profile

Avatar
Boost 3
Level 2
Karl_Heinz_Krem
Level 2

Likes

3 likes

Total Posts

38 posts

Correct Reply

3 solutions
Top badges earned
Boost 3
Boost 1
Affirm 3
Affirm 1
View profile
Karl_Heinz_Krem
Level 2

01-05-2017

I replied in your original question with an answer:

Re: Email Submit button to one external address