Make the Requested amount field accepts locale formated values#4767
Make the Requested amount field accepts locale formated values#4767
Conversation
|
I used up a lot of Claude code tokens for this 😄. So many nitty gritty details but after hours of testing I believe (hope) it's working. Really needs testing by other people, important that this does not mess up users data. If we can be sure it works I think it will be a nice ux improvement, allowing users to enter values the way they are used to and Hypha takes care of the rest. |
|
@bmispelon I heard you created a solution for this already. Something similar to above or did you find a cleaner fix for it? |
|
pretty cool how intelligent this field is now! initial testing is looking pretty good, going to keep probing a little deeper later this afternoon for edge cases |
|
I think it's ready other than that! would be cool to get input from folks that actually will be utilizing this though |
|
Will see about allowing spaces on input. |
…uested amount field. Add custom prepare_value to make the widget use the locale correct decimal seperator.
e72f0ae to
7ad1b06
Compare
|
A small change makes it possible to add all the spaces you like on input, they are removed when user submit form. |

Fixes #4628
Add custom
to_python()function to allow localised number inputs to Requested amount field. Add customprepare_value()to make the widget use the locale correct decimal separator.Test Steps