Expand my Community achievements bar.

Javascript Help for Acrobat Form

Avatar

Former Community Member

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

Avatar

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