Developer forum

Forum » CMS - Standard features » How to save custom checkbox value when creating a user

How to save custom checkbox value when creating a user

Lars Larsen
Reply

Hi,
I am using the UserManagement module to create a user from the frontend. But I can not make the module save the value from a customfield checkbox in the create user form. I think the problem could be the naming of the checkbox. What is the naming convension for custom userfields in the create user form (Files\Templates\UserManagement\CreateProfile\user_create.html)?
 


Replies

 
Merethe Nielsen
Reply
Hi

How do you set it up in your template?

I have tried with the basic setup with the loop and the controle to render all my custom fields, and if I check my checkbox in frontend, when I create a user, then it's checked in backend.

I use this in my Templates/UserManagement/CreateProfile/user_create.html:
<!--@LoopStart(UserManagement:User.CustomFields)--> 
    <!--@CustomField.Control-->
<!--@LoopEnd(UserManagement:User.CustomFields)-->

/Merethe

 

You must be logged in to post in the forum