# Textinput currency format

**URL:** <https://forum.kirupa.com/t/textinput-currency-format/301997>\
**Category:** Uncategorized\
**Created:** [December 19, 2009, 12:32am UTC](https://forum.kirupa.com/t/textinput-currency-format/301997 "2009-12-19T00:32:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tuckertota](https://avatars.discourse-cdn.com/v4/letter/t/0ea827/32.png) [@tuckertota](https://forum.kirupa.com/u/tuckertota)\
**Post date:** [December 19, 2009, 12:32am UTC](https://forum.kirupa.com/t/textinput-currency-format/301997/1 "2009-12-19T00:32:09Z")

</div>

i want to make a textinput where a person can type in a price. I used “restrict” to only allow numbers and decimal. But the person can type in several decimals and create numbers like 11.1.1.1 or 11…11 or 1.11111

i want to restrict the entry to only one use of a decimal and only two numbers after the decimal.

any other way to format a textinput to a currency format?  
thanks
