[Input Masks Mobile] Negative Value in Currency Mask Field not accepted...

[Input Masks Mobile] Negative Value in Currency Mask Field not accepted...

  
Forge Component
(8)
Published on 2017-11-15 by Labs
8 votes
Published on 2017-11-15 by Labs

Good Afternoon!

I'm using the Currency Mask component on an input field. However, it doesn't seem to accept negative numbers..! In other words, when trying to enter a currency amount less than zero, the field ignores the initial "-" character. 

In an age of vast debt, not being able to enter a negative value in a currency field is problematic!

Any ideas, guys?

Regards,

Rod Heydon

Hi Rod,

Looks like isn't possible with this component. To be honest dunno why they didn't do it because would be really simple. If you want to change it by yourself you only need to include another input variable and than use it in the same place the other input variables are used with this option allowNegative: $parameters.allowNegative

Regards,

Marcelo

Marcelo Ferreira wrote:

Hi Rod,

Looks like isn't possible with this component. To be honest dunno why they didn't do it because would be really simple. If you want to change it by yourself you only need to include another input variable and than use it in the same place the other input variables are used with this option allowNegative: $parameters.allowNegative

Regards,

Marcelo

Hi Marcelo,

Could you give an example ?

Thanks