Limiting input of decimals

Hi,

Is it possible to limit the number of decimal places a use is able to type into a numeric field?

I want to be able to check, for example, that someone only types up to a maximum of 3, so 123.754 would be ok but not 123.7546.

I do not want the format option to simply round the entered value for display purposes, I actually want to prevent entry.

Cheers
Reg

I've added MaxLength for the Numeric component to handle such cases:

Thanks @enchev, however this limits the total length of the numeric field, not just the number of digits entered after the decimal point? I would like to be able to specify how many digits can be entered following a decimal point.

e.g.

MaxLength="2" would allow:

567,843,123.23
or
0.23

but not
567,843,123.237
or
0.237

Is that possible?

Many thanks
Reg

Just thinking that, for clarity, I should maybe add that when I refer to a decimal point, I'm doing so in the context of the British numbering format, e.g. 999,999.99

Cheers
Reg

I see now what you are looking for however I’m afraid that there is no such feature not something that can be easily implemented. Possible solution can be to use Mask component instead.

Morning @enchev,

Ok, thanks for the input, I'll take another look at Masks, but otherwise I'll cut a bit code to try and handle it.

Many thanks
Reg