# Howto format (& properly validate) a currency input field?

**URL:** <https://discourse.cakephp.org/t/howto-format-properly-validate-a-currency-input-field/8986>\
**Category:** Need Help\
**Created:** [February 9, 2021, 10:42am UTC](https://discourse.cakephp.org/t/howto-format-properly-validate-a-currency-input-field/8986 "2021-02-09T10:42:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eMarcus](https://avatars.discourse-cdn.com/v4/letter/e/73ab20/32.png) [@eMarcus](https://discourse.cakephp.org/u/eMarcus)\
**Post date:** [February 9, 2021, 10:42am UTC](https://discourse.cakephp.org/t/howto-format-properly-validate-a-currency-input-field/8986/1 "2021-02-09T10:42:08Z")

</div>

Hi,

I have a table with a “decimal” column which I use to store EUR-amounts.

When I create a standard input field using the FormHelper

> echo $this-\>Form-\>control(‘amount’);

I get a number input field which only accepts integer values. How can I make it to accept currency input amounts including two decimals and set the proper decimal delimiter?

Thanks,  
Marcus.
