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

Displaying custom user fields

Discussion in 'Styling and Customization Questions' started by vexx, Apr 1, 2013.

  1. vexx

    vexx Active Member

    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.

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

    vexx Active Member

    found it..it's
    {xen:helper userFieldValue, $userFieldsInfo.my_identifier, $user, {$user.customFields.my_identifier}}
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

Share This Page