114
Views
4
Comments
[Input Masks] Decimals not working
Question
input-masks
Web icon
Forge asset by António Chinita

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.

2023-02-10 19-42-59
João Melo
 
MVP

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

2023-08-11 11-54-43
Marcela Miranda Melo

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.

stepsInputMasks.gif
2020-12-07 17-35-54
António Chinita

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.

2023-02-10 19-42-59
João Melo
 
MVP

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/

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.