[Input Masks] Decimals not working

[Input Masks] Decimals not working

  
Forge Component
(21)
Published on 19 Apr by Miguel 'Kelter' Antunes
21 votes
Published on 19 Apr by Miguel 'Kelter' Antunes

Hi!

Have you ever came across with decimals from price mask not working?

I have 2 environments: one that works very fine (Price value is 12.34 -> with a dot) and another one doesn't work at all (the screen shows Price value is 1234 -> without a dot).

I already checked my server settings on regional values and both envinroment have the same configuration.

Can you help me?

Best Regards,

Marcela Miranda.

Have you looked at the Site Properties? You might have a GroupSeparator and DecimalSeparator somewhere, amongst component's or your module's Site Properties.

Hi, João!

Yes, I had. I don't have any properties to set up at Site Properties:

The behave which I have faced is the following one:[attached -> stepsInputMasks.gif]

Note that I change the environment in the middle of the test.

Best regards,

Marcela Miranda.

Hi Marcela.

Did you check the browser console for JavaScript errors?

Seems like the component isn't being initialized at all. If this is the case, there should be one (or more) errors there that might help tracing the problem.

Marcela, I don't really know it behaves like you showed in the gif.

I've downloaded the component to my PE, and it works just fine.

Have you checked both environments have the same version?

Have you taken a look at other components on Forge? I recommend this one: https://www.outsystems.com/forge/component/621/jqueryinputmask/