Skip to main content
Inspiring
February 4, 2016
Question

PDF Fillable forms. Text field $ amount.

  • February 4, 2016
  • 4 replies
  • 436 views

Fillable text field. I need a script for for 5,000 increments. Here is the line of text for the field.

Face Amount $ _________ minimum $ 5,000 to a maximum of $ 30,000 (must be in units of $ 5,000)

User must only be able to enter.... 5,000 or 10,000 or 15,000 or 20,000 etc to 30,000.

I would also need this to work for French, commas to space.

Thank you in advance.

This topic is closed to new replies. Start a new post to keep the conversation going.

4 replies

try67
Community Expert
Community Expert
February 4, 2016

The formatting you can set under the Format tab.

For the validation use this script:

if (event.value) event.rc = ((event.value%5000)==0);

Inspiring
February 4, 2016

Hi Try67

Thank you for your quick response, this work great for English. In the French it inserts a comma where we need a space. Are you able to send another script where it inserts a space for the french $ amount?

Thank you very much!

try67
Community Expert
Community Expert
February 4, 2016

You would need to write a custom format script to achieve that.