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 UTC-5, Rahul Priyadarsi wrote: > > Currently I see that the order in which the fields appear in form is not > same when i iterate through form.vars > I am using SQLFORM. > > So how do I get the form.vars so that they appear in same order as they do > on the form? > -- 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.

