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

Reply via email to