Javascript Help for Acrobat Form

Avatar

Avatar
Level 1
kendwirx
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile

Avatar
Level 1
kendwirx
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile
kendwirx
Level 1

26-08-2015

Javascript Help for Acrobat Form. I have 2 fields. The first is LName, the 2nd is LNameCost. I want the user to enter their name in LName and have LNameCost populate with $249. Any thoughts for rookie?

So far I have in the top of the screen topmostSubform.Page1.LName: :exit: - (Javastript, Client) ------------------------

if (this.rawValue = Don't know what to put here?)

   {

     this.parent.LNamCost.rawValue = "$249";

   }

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Boost 5
Level 2
PDFGuru
Level 2

Likes

14 likes

Total Posts

75 posts

Correct reply

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

Avatar
Boost 5
Level 2
PDFGuru
Level 2

Likes

14 likes

Total Posts

75 posts

Correct reply

10 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile
PDFGuru
Level 2

01-09-2015

Try using following script.

if (this.rawValue != null  || this.rawValue != "")

   {

     this.parent.LNamCost.rawValue = "$249";

   }

For similar kind of JavaScript examples, please visit following blog:

Adobe PDF Forms