How to have number input look as...

User 2055394 Photo


Registered User
34 posts

I have a number field in my form for users to enter in a dollar amount. The placeholder reads: $0.00. I want users to be able to type in $10000.00 or even 10000.00 and it show up as $10,000.00. Right now it only accepts numbers and wont allow the dollar sign or comma to be added. I know I could do it as a text box which would allow someone to enter a $ or , but I would like the results formatted as dollars. Is this possible? I tried looking at the regular expression option but wasn't sure how to set it up.
User 187934 Photo


Senior Advisor
20,271 posts

The regular expression would work but CC hasn't fixed the issue with the validation js getting thrown against the wall when using certain REGX expressions. This one would require one of those. It's suppose to be fixed in the next update.:)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2582728 Photo


Registered User
48 posts

Eric -

This seems related -- is it also expected that there might be an option to have separators (e.g., commas) displayed dynamically as a user fills in a numeric field? That's a current request from my customer...

Jon
User 187934 Photo


Senior Advisor
20,271 posts

You could probably use Jquery for that.:cool:
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.