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

Javascript Help for Acrobat Form

kendwirx
Level 1
Level 1

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

   }

1 Reply
PDFGuru
Level 4
Level 4

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