Adding new fields to the "New User" form

Sep 18, 2014 at 4:29 PM
How can we add new/custom fields to the "New User" form (UserNew.aspx)?
Coordinator
Sep 18, 2014 at 7:14 PM
At the moment you would have to download the code for the FBA Pack and then modify it in Visual Studio. Under Layouts\FBA\WebParts there's the ascx templates for the ui for the web parts. And then you'd have to modify the web parts themselves to read/save the values for the new fields.
Marked as answer by tomsmithweb on 9/19/2014 at 8:37 AM
Sep 24, 2014 at 2:47 PM
Edited Sep 24, 2014 at 2:47 PM
Do you know if there is a way to alter the (MembershipUser) CreateUser function?

If not, where do you recommend saving my new fields to in SharePoint?

thanks!
Coordinator
Sep 24, 2014 at 3:16 PM
You can't modify the CreateUser function directly, as that comes from Microsoft. You could create a wrapper function though, that calls the CreateUser function and does your extra save logic.

I save the new fields to the sharepoint user profile - so just add any fields you need to the sharepoint user profile, and then update the spUser object for the user with the new field values.
Marked as answer by tomsmithweb on 9/24/2014 at 8:36 AM