Hello, I apologize if this is covered in another issue but to me it seems different than all those that I've been able to find.
The scenario is that I create a number field with default settings and I'd like to allow the entry of decimals without the leading zero (e.g. .5). I get the validation error message:
Number field field value must format numbers as "12,345.6789".
The value of 0.5 passes validation and the form submits. Is there a way to configure the field to allow the omission of the leading zero for values less than 1?
Thanks
Matt
Comments
Comment #2
danchadwick commentedThis was intentional, but I can see that it is a touch restrictive. This patch:
This means that ".5" and "100." are now both accepted, whereas previously they would not have been.
Committed to 7.x-4.x an 8.x.
Comment #5
danchadwick commentedAck. Committed the code before the reg ex commenting.
Committed revision to 7.x-4.x and 8.x.
Comment #8
kaypro4 commentedThis worked great! Thanks for the quick fix.
Matt