Skip to main content
Participant
May 15, 2017
Question

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

  • May 15, 2017
  • 1 reply
  • 235 views

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.

This topic has been closed for replies.

1 reply

Inspiring
May 15, 2017

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.