These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Display message at numbers into words box, when no value as "NO VALUE ENTERED"

nalakahe
Registered: Jul 17 2011
Posts: 11
Answered

Dear all,
i am working with Acrobat Pro X, and a text box for input numbers is available. Another text box is using to convert the previous number into words. it works fine.
my new requirement is to display an automatic message at the second box where the numeric field is with no value.such as "NO VALUE ENTERED"(should not be a pop up)
 
Regards
Nalaka

NalakaHE

My Product Information:
Acrobat Pro 10.0, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Accepted Answer
So check if the value of the text box is an empty string (""), and if so, populate the description text box with your text.

  1. if (getField("Number").value=="") event.value = "NO VALUE ENTERED";
  2. else {
  3. // rest of the calculation code...
  4. }

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

nalakahe
Registered: Jul 17 2011
Posts: 11
Its great....Thanks a lot try67.

NalakaHE