I want to sign up new members on my Umbraco website, and give them access to a reserved area.
I need to collect some additional infos from them, like their first name, last name, company name, phone number etc.
So, for the back-end, in the Member section of my Umbraco website, I did this:
- created a new MemberType, called "memberWebsite"
- added a new tab "Additional Infos" to my "memberWebsite" MemberType
- inside the new tab I've added my new custom properties: First Name, Last Name, Company Name, etc
- all of these properties have "Textstring" editor
- all of these properties have checkbox "Member can edit" and "Show on member profile" checked
For the front-end, I've created a new partial view for the registration form of the new member, using the "Register Member" snippet provided by Umbraco.
I've only changed the member type of the registerModel, specifying my new MemberType "memberWebsite", like suggested in the snippet comment.
@*
You can specify a custom member type alias in the constructor, the default is 'Member'
for example, to use 'Custom Member' you'd use this syntax:
var registerModel = Members.CreateRegistrationModel("Custom Member");
*@
//var registerModel = Members.CreateRegistrationModel();
var registerModel = Members.CreateRegistrationModel("memberWebsite");
The fields for the new member custom properties are correctly shown in the registration page.
I fill them with some values, and then click on the submit button.
I expect to find these values on the new member created, but only the standard fields are saved (e.g. Name, Email, Password).
The custom properties are completely blank, like I never filled them.
How can I get the custom properties saved correctly with the entered values?
PS: I'm running Umbraco 7.14.0.