Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Saikat Saha
how to add new fields in user registration page
May 8, 2012 11:02 PM
Answer

Saikat Saha

Rank: New Member

Posts: 23

Join Date: November 16, 2011

Recent Posts

Hi,

I want to add new mandatory fields in user registration page. I want fields like Contact No, few address fields (house No, street, locality, city/ town, PIN, state, Country) along with existing fields while registering a user. Also need to have provision to update the same fields by that user from his profile.

If any one have any idea, please guide me.

Regards,
Saikat Saha
Tejas Kanani
RE: how to add new fields in user registration page
May 8, 2012 11:22 PM
Answer

Tejas Kanani

Rank: Liferay Master

Posts: 655

Join Date: January 6, 2009

Recent Posts

Hi Saikat,

You can define all those as Custom Attributes for User object. And user can edit it from his/her account page from Control Panel.
Go through below link which will explain everything in detail.
http://www.liferay.com/community/wiki/-/wiki/Main/How+to+use+Custom+Attributes+to+enhance+Users

Hope this helps.

Thanks,
TK
Sujay Kumar Paul
RE: how to add new fields in user registration page
May 9, 2012 3:16 AM
Answer

Sujay Kumar Paul

Rank: Regular Member

Posts: 165

Join Date: October 28, 2011

Recent Posts

this attributes will show after register.

In time of registration u cant see this fields.
Tejas Kanani
RE: how to add new fields in user registration page
May 9, 2012 3:22 AM
Answer

Tejas Kanani

Rank: Liferay Master

Posts: 655

Join Date: January 6, 2009

Recent Posts

Yes that is true.

For that you need to modify create account page to display those custom fields while registration.
Check out below link which nicely explains what you need.
http://www.liferay.com/community/wiki/-/wiki/Main/Custom+Fields+and+JSP+Hooks

Regards,
TK
Sujay Kumar Paul
RE: how to add new fields in user registration page
May 9, 2012 3:22 AM
Answer

Sujay Kumar Paul

Rank: Regular Member

Posts: 165

Join Date: October 28, 2011

Recent Posts

I think with out hooking its impossible to change this page
Tejas Kanani
RE: how to add new fields in user registration page
May 9, 2012 3:24 AM
Answer

Tejas Kanani

Rank: Liferay Master

Posts: 655

Join Date: January 6, 2009

Recent Posts

Yes without OOTB code modification, it's not possible. So anyhow you need to modify OOTB new account creation page.
Paul Butenko
RE: how to add new fields in user registration page
June 11, 2012 11:40 PM
Answer

Paul Butenko

Rank: Junior Member

Posts: 38

Join Date: July 1, 2010

Recent Posts

Hello,
You can do it in few ways. First one is to simply add fields to jsp page, if they present at DB and beaans, second one use expando bridge to extend user entity.
You can check detailed solution in this post.

BR,
Paul