Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

PDF Fillable forms. Text field $ amount.

Explorer ,
Feb 04, 2016 Feb 04, 2016

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.

TOPICS
Acrobat SDK and JavaScript
387
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 04, 2016 Feb 04, 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);

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 04, 2016 Feb 04, 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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 04, 2016 Feb 04, 2016

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 04, 2016 Feb 04, 2016
LATEST

Thanks Try67

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines