View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 18334 | Bug reports | Data Entry (non public) | public | 2022-09-05 14:29 | 2022-09-08 14:44 |
| Reporter | interval | Assigned To | ollehar | ||
| Priority | none | Severity | minor | ||
| Status | closed | Resolution | won't fix | ||
| Product Version | 5.3.x | ||||
| Summary | 18334: Automatic Transformation of number using thousands separator | ||||
| Description | Question type: numerical input. If a participant of the survey types in a number with thousands separator (e.g. "1.000"), then LimeSurvey transforms the response automatically to number “1” | ||||
| Steps To Reproduce | Steps to reproduce(Replace this text with detailed step-by-step instructions on how to reproduce the issue) Expected result(Write here what you expected to happen) Actual result(Write here what happened instead) | ||||
| Tags | No tags attached. | ||||
| Bug heat | 6 | ||||
| Complete LimeSurvey version number (& build) | Version 5.3.31 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | Firefox | ||||
| Database type & version | ? | ||||
| Server OS (if known) | |||||
| Webserver software & version (if known) | |||||
| PHP Version | ? | ||||
|
Separators are different in different countries. Don't use separators. |
|
|
Will try to reproduce |
|
|
Thanks for your quick reply . Not using a thousands separator at all is actually no good solution for us, since we do not want to warn the participants before every numeric question that they are not allowed to use it. |
|
|
It should be filtered, no? |
|
|
What should be filtered? |
|
|
Invalid numbers like "1,00" or "1.00" should be filtered when written to "1" so that the participant knows. Same with "1'00" etc etc. Unless you want to allow decimals, of course. |
|
|
Yes, most of the time we want to use decimals (in our case a comma). |
|
|
I think there could be 2 problems here: Thoughts? |
|
|
This was discussed extensively in 2015 and 2016. It's just a mess to get right with all different locales. Just don't use a numeric type, use a normal text question, and then write your own regular expression if you really want to validate it. |
|
|
Perfect! Then I think it is OK to close the ticket, right? |
|
|
Alright, then we will probably use a normal text question and check the answers afterwards. |
|
|
Feel free to discuss further on forum, for more advice on how to design regular expression etc. \o |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2022-09-05 14:29 | interval | New Issue | |
| 2022-09-05 15:23 | ollehar | Note Added: 71599 | |
| 2022-09-05 15:23 | ollehar | Bug heat | 6 => 8 |
| 2022-09-05 15:36 | gabrieljenik | Status | new => acknowledged |
| 2022-09-05 15:36 | gabrieljenik | Note Added: 71600 | |
| 2022-09-05 15:36 | gabrieljenik | Bug heat | 8 => 10 |
| 2022-09-05 15:57 | interval | Note Added: 71601 | |
| 2022-09-05 15:57 | interval | Bug heat | 10 => 12 |
| 2022-09-05 16:07 | ollehar | Note Added: 71602 | |
| 2022-09-05 16:16 | interval | Note Added: 71603 | |
| 2022-09-05 16:17 | ollehar | Note Added: 71604 | |
| 2022-09-05 16:18 | ollehar | Note Edited: 71604 | |
| 2022-09-05 16:38 | interval | Note Added: 71605 | |
| 2022-09-06 15:42 | gabrieljenik | View Status | private => public |
| 2022-09-06 15:42 | gabrieljenik | Bug heat | 12 => 6 |
| 2022-09-08 10:53 |
|
Bug heat | 6 => 8 |
| 2022-09-08 12:36 | ollehar | Bug heat | 8 => 6 |
| 2022-09-08 14:30 | gabrieljenik | Note Added: 71653 | |
| 2022-09-08 14:30 | gabrieljenik | File Added: image.png | |
| 2022-09-08 14:32 | ollehar | Note Added: 71654 | |
| 2022-09-08 14:33 | ollehar | Note Edited: 71654 | |
| 2022-09-08 14:36 | gabrieljenik | Note Added: 71655 | |
| 2022-09-08 14:40 | interval | Note Added: 71656 | |
| 2022-09-08 14:44 | ollehar | Assigned To | => ollehar |
| 2022-09-08 14:44 | ollehar | Status | acknowledged => closed |
| 2022-09-08 14:44 | ollehar | Resolution | open => won't fix |
| 2022-09-08 14:44 | ollehar | Note Added: 71657 |