I have a custom currency widget (that renders a text field with a '$' at 
the front of it) and I'm using the bootstrap3_inline formstyle for 
generating forms using SQLFORM.

The formstye is executed before SQLFORM.accepts().

If an error occurs in my form, the block of code in 
sqlhtml.SQLFORM.accepts() lines 1562 - 1577 generates a new Widget and 
therefore a new INPUT after the formstyle code has been executed.

The formstyle code had previously added a 'form-control' class to the 
original INPUT tag which is then wiped out by the aforementioned code. This 
causes my form to not display the correctly.

Why does web2py generate a new widget here - shouldn't it just overwrite 
the value of the old widget with the default from the record or the field 
default?? Or am I doing something wrong?

Thanks in advance,
Eliot

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to