Decimal field throwing an error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2024 01:28 AM
Hello All
We've one decimal type field on form, and when Swedish (Language) user tries to submit the form it through the error like: Ogiltigt decimaltal
Note:
1. Except Swedish, No users are facing this kind of error message.
2. None of the script included "Ogiltigt decimaltal".
Any assistance in resolving the issue would be greatly appreciated.
Thanks and Regards
Kartik Magadum
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2024 02:14 AM
Hello @Kartik Magadum
The issue arises due to differences in how decimal numbers are formatted in different locales. In Swedish, a comma (,) is used as a decimal separator instead of a period (.). When a Swedish user inputs a decimal number using their local format (e.g., 10,5), the system may not recognize it correctly if it expects a period as the separator.
You can try to add validation logic to handle both comma and period as decimal separators. For example, you can replace , with . in client scripts or business rules before processing the value.
"If you found my answer helpful, please like and mark it as an "accepted solution". It helps others find the solution more easily and supports the community!"
Thank You
Juhi Poddar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2024 03:59 AM
Basically the error is coming when i try to save the form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2024 04:38 AM
Hello @Kartik Magadum
You can try adding validations like converting (,) to (.) before submitting.
"If you found my answer helpful, please like and mark it as an "accepted solution". It helps others find the solution more easily and supports the community!"
Thank You
Juhi Poddar