Javascript Help for Acrobat Form

Avatar

Avatar

kendwirx

Avatar

kendwirx

kendwirx

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

PDFGuru

Avatar

PDFGuru

PDFGuru

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