Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Number field doesn't work for decimal numbers


In Forms version 4.30.3 I am experiencing a problem with the Number field. If the user enters a decimal number like 50,5 the field value will be null after posting the form. It doesn't work for point instead of comma like 50.5 either.
The form field has not been configured to only allow integers.
Any suggestions what can be the issue? Any known bug?

Best regards

Apr 21, 2023 8:18

I tested decimal numbers on an Alloy-site with Forms 4.30.3 and there it works. So probably it has something to do with our code base and custom Form fields or actors.

Best regards


Apr 21, 2023 14:19

After investigating this with Optimizely support, it turned out to be a bug. If you have globalization culture="sv-SE", posted decimal numbers in form fields of type number will always be null. It does not matter if you enter the decimal numbers with commas or periods as separators.

This is resolved and will launch in Episerver.Forms 4.30.10.

May 31, 2023 13:56
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.