Developer forum

Forum » Templates » How can I change User CustomField value in Frontend (through templates)

How can I change User CustomField value in Frontend (through templates)

Dmitrij Jazel
Reply
Hi DW guys,
I have setup some User CustomFields setted up in Management center.
My question is:
in DwTemplateTags I have a tag  that generates a Input box for editing Phone number for a user.
How do I get one like that for my User CustomField?

All this is happening in Extranet/Intranet (Extended) module, edit user and create new user template.

/Dmitrij

 


Replies

 
Mikkel Ricky
Reply

Input controls are rendered for custom fields inside the UserManagement:User.CustomFields loop:

<!--@LoopStart(UserManagement:User.CustomFields)-->
<!--@CustomField.Name-->: <!--@CustomField.Control-->
<!--@LoopEnd(UserManagement:User.CustomFields)-->

Please create a feature request if you need them outside this loop.

Best regards,
Mikkel

 

 

 

 

 

 

 
Dmitrij Jazel
Reply

Hej Mikkel,

Thanks for quick response! :-)

Yes, direct input box could be a good idea, otherwise that would benefit only non-razor solutions, (as it is my case).

Thanks for help! :-)

/Dmitrij

 

 

 

 

 

 
Mikkel Ricky
Reply

I don't understand your comment about Razor. This loop can be used in both HTML templates and in Razor templates.

 

You must be logged in to post in the forum