Try our conversational search powered by Generative AI!

Number field doesn't work for decimal numbers

Vote:
 

Hi!
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
Kristian

#300491
Apr 21, 2023 8:18
Vote:
 

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

Kristian

#300500
Apr 21, 2023 14:19
Vote:
 

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.

https://world.optimizely.com/documentation/Release-Notes/ReleaseNote/?releaseNoteId=AFORM-3363

#302718
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.