Re: [web2py] Re: Order of form.vars not same as they appear in form

2017-01-13 Thread Rahul Priyadarsi
Yes form.fields works! Thank you very much On 13 January 2017 at 01:12, Anthony wrote: > form.vars is a dict-like object, so not guaranteed to return keys in any > particular order. If the form is based on a db table, you can iterate > through db.table._fields. The form

[web2py] Re: Order of form.vars not same as they appear in form

2017-01-12 Thread Anthony
form.vars is a dict-like object, so not guaranteed to return keys in any particular order. If the form is based on a db table, you can iterate through db.table._fields. The form object also includes the list of field names in form.fields. Anthony On Thursday, January 12, 2017 at 1:37:03 PM