It's not nice and I don't know how I can say to web2py to add the
> error-wrapper after the input-group. Do you know that?
>
>
On the controller
form.accept(hideerror=True)
On the view you have to display errors yourself
{{if form.errors.daily_distance:}}
... write your own html/javascri
That's interesting and more clean but in my case I don't use the widget as
I would like to add to the input an input-group-addon for having for
example for this field 'daily-distance' the unit at the end.
{{=LABEL(T(db.events.daily_distance.label),
_for='dai
I hope you can do your solution in controller.
You can set form.vars
AFTER form= definition
and BEFORE form.validate() (or before form.process() which contains
.validate() call)
But you can set the value later too.
Here you have initial name Jan, and substitute name after failed validation
Thank you Mirek for that.
Like that it works:
{{=INPUT(_type='text', _name='book_title', _id='book_title',
_value='form.vars.book_title')}}
But web2py don't load the default value set in the table (even before it
was like that but I've add it with _value.
For having a complete solution I must d
form.vars.book_title ? (book, chapter 7)
Dne úterý 23. srpna 2016 13:47:34 UTC+2 Gael Princivalle napsal(a):
>
> Hello.
>
> In a custom form when the user submit the form with errors I need to
> reload all user inputs and set the input value.
>
> For example here is an input:
> {{=INPUT(_type=
5 matches
Mail list logo