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

autofill decimals with ".-" if non is entered in form field

New Here ,
May 15, 2017 May 15, 2017

I need a form field for typing in numbers (prices) to show the number with ".-" in the end if no decimals are entered. Fx. if "200" is typed is should be displayed like "200.-"  
And if the number is typed with decimals it should not do anything. Fx. if someone types in "199.95" it will be displayed likewhise.

Also I need the seperationstyle to be displayed like "." even though someone types in a ",".

I hope it makes sense.

TOPICS
Acrobat SDK and JavaScript
205
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
LEGEND ,
May 15, 2017 May 15, 2017
LATEST

That will require custom JavaScript for the keystroke, format and validation. It will also make the field a text non-numeric field so if you are doing any calculations you will need to convert the number back into a numeric value.

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