auth.settings.profile_fields = ['prefix_title', 'first_name', 'last_name', 
...]

Anthony

On Monday, April 8, 2019 at 9:38:06 AM UTC-4, lucas wrote:
>
> hello one and all,
>
> i'm using web2py 2.17>.
>
> what is the best method to change the field order on the view's 
> user/profile and user/register when adding fields like???
>
> auth.settings.extra_fields['auth_user'] = [
>     Field('prefix_title', length=4, 
> requires=IS_IN_SET(('Mr.','Ms.','Mrs.','Dr.')), comment='Enter your Name 
> Prefix.'),
>     Field('birthdate', 'date', requires=NE, comment='Enter in Format: 
> "YYYY-MM-DD"'),
>     Field('zip', length=9, requires=NE, comment='Your Zip or Postal 
> Code.'),
>     Field('gender', length=6, default='FEMALE', 
> requires=IS_IN_SET(('FEMALE','MALE')), comment='Enter your Gender.'),
>     Field('input_date', 'date', comment="format YYYY-MM-DD", requires=NE, 
> default=datetime.date.today(), writable=False, readable=False)
>     ]
>
> thank you in advance.  lucas
>

-- 
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