Is there a way to generate the HTML for a single profile field? I know I can do RenderForm() and get a form HTML with all the fields in it. But I would like a single field's HTML.
Is there a way to generate the HTML for a single profile field? I know I can do RenderForm() and get a form HTML with all the fields in it. But I would like a single field's HTML.
I was able to do it by modifying the UserFields widget subfile multiple-fields.vm file and just passing in the xml data I define. My new file is called multiple-fields2.vm
#set($field = "Interests")
$data.Add($field, $core_v2_encoding.HtmlDecode($field))
$core_v2_widget.ExecuteFile('multiple-fields2.vm')
Here is the multiple-fields2.vm file in gist
I was able to do it by modifying the UserFields widget subfile multiple-fields.vm file and just passing in the xml data I define. My new file is called multiple-fields2.vm
#set($field = "Interests")
$data.Add($field, $core_v2_encoding.HtmlDecode($field))
$core_v2_widget.ExecuteFile('multiple-fields2.vm')
Here is the multiple-fields2.vm file in gist