• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Displaying custom user fields

vexx

Active member
#1
Just want to say I'm new to XF and I'm starting to get around things.

So, i've created a new user field..a drop down menu...and I have problems outputing the text value of the choice. Basically, every time I call this userfield, it displays the value (internal value) but not the text.

Code:
<xen:if is="{$user.customFields.field}">
<dt>Text: {$user.customFields.field}</dt>
</xen:if>
How can I call this field to output the text of the value instead of the value?
 

vexx

Active member
#2
found it..it's
Code:
{xen:helper userFieldValue, $userFieldsInfo.my_identifier, $user, {$user.customFields.my_identifier}}