How to add custom field for user in Kentico 12
Kentico comes with out of the box Membership and user management functionality. Built in user type has basic fields which serve the purpose in most of the case but what if we need additional fields for user.
Earlier I choose to go with custom table approach to store the additional information and fetching user information using user ID. It's solve the purpose but not the ideal way of doing it.
Here I am using Kentico 12 to demostrate it. As per the Kentico you can customize any module class which is marked as customizable (highlighted in Image-1) and it's the case with user custom class in membership module.
Let's say you want to add a Company name of the user. You can add it easily without writting custom code. You need to follow following steps to achive it.
Go to Modules > Membership > Classes > User > Fields
Click on "New Field" and create "Company" filed with required information and save it.
Once you add custom field it will be available under user as Custom Field.
If you want to make these fields available for the user to enter when they register or update their profile.
you can access the user related alternative forms by going to Modules > Membership > Classes > User > Alternative Forms.
Kentico makes it easy to customize many aspects of CMS without having to touch a line of code.