Extending the registration form

25 views
Skip to first unread message

ODS_steel

unread,
Jul 31, 2019, 7:52:50 AM7/31/19
to General Open edX discussion
Hi,

I noticed the user has the ability to include a profile image ("profile_image") as well as share accomplishments ("accomplishments_shared") e.t.c. 


From this a json can easily be generated via the api http://www.domain.com/api/user/v1/accounts/user1

which produces this 

{"username":"user1","bio":null,"requires_parental_consent":false,"name":"user","secondary_email":null,"country":null,"social_links":[],"is_active":true,"profile_image":{"image_url_full":"http://www.domain.com/static/images/profiles/default_500.4215dbe8010f.png","image_url_large":"http://www.domain.com/static/images/profiles/default_120.4a5e0900098e.png","image_url_medium":"http://domain.com/static/images/profiles/default_50.3455a6581573.png","image_url_small":"http://www.domain.com/static/images/profiles/default_30.deee7287e843.png","has_image":false},"extended_profile":[],"year_of_birth":1982,"level_of_education":null,"accomplishments_shared":false,"goals":null,"language_proficiencies":[],"gender":null,"account_privacy":"all_users","mailing_address":null,"email":"us...@website.com","date_joined":"2019-07-12T10:10:14Z"}

How can I extend the initial registration form ( login_and_register.html) to enable and ensure new users fill in some or all of these fields at the start?

Thanks in advance
Reply all
Reply to author
Forward
0 new messages