Set proper validater in your models or create a custom validator or use a
javascript plugin that behave has you would your input field to do in the
front end as you collect the data in the way you want in the backend...

Instead of asking why you try to use don't work, ask us how to do what you
try to achieve, it will be more productive.

Good luck

Richard

On Fri, Sep 22, 2017 at 2:27 PM, Pierre <theognis0...@gmail.com> wrote:

> Hi everyone,
>
> trying to replace a list:string form data attribute (data-fuu) value
>
> am doing the following:
>
>        form = SQLFORM(db.listfoo, record=rec, fields=['foo'], showid=False
> )
>        for i,fe in enumerate(form.elements('input.string')):
>             fe['_data-fuu'] = form.record.fuu[i]
>
>
> I noticed the above changes aren't persistent as in case of *form.errors*
> data-fuu values return to their initial values
> How to make these persistent whatever happens to the form process ?
>
> --
> 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