On the first ...:
1.255,76is invalid as there are no commas AFTER decimal places.
As far as the latter, I am not sure. Could be a Python thing ...

*Ben Duncan*
DBA / Chief Software Architect
Mississippi State Supreme Court
Electronic Filing Division


On Sat, Feb 23, 2019 at 9:48 PM Cristian Re <cristian...@gmail.com> wrote:

> Hello, I have a question.
>
> I have a model like this:
>
> db.define_table('buy_invoices',
>                 ...
>                 Field('amount', 'double', default=0.0, label="Importo")
>                 ...
> )
>
> and I create a page with sqlform
>
> form = SQLFORM(db.buy_invoices)
>
>
> when the for is displayed there if a try to copy into the amount field a
> string with decimal and thousand separators the form conserve the first
> separator and delete the others. For example:
>
> if I copy the string "1.255,76" the form field becomes "1.25576" the same
> if I change the separators "1,255.76" becomes "1,25576"
>
> is there a way to keep the format?
>
> Thanks in advance
> Cristian
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to