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

Allow number only, then add static text to final value

nwilliamspafcu
Registered: Apr 28 2011
Posts: 1
Answered

Hi,
 
I need some help with custom scripting please. I want to allow the user to enter in a number into a text field. I want the field to automatically add "months" after that number. for example, the user enters the number 60, the final value is "60 months". Can someone out there help me with what I need to enter in the custom calculation script? If it isn't painfully obvious, I'm new to this...

My Product Information:
Acrobat Standard 9.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Accepted Answer
This isn't a calculation, it's a formatting script.

See this article:Formatting Text Fields

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script