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

Working with custom fields

Hopefully this is the correct place for this.

I am trying to work with custom fields.

Lets say a create a new custom field (Field ID = car) that I call (Title = Type of Car). I use radio buttons with the following two options "value = toyota, text = Toyota" and "value = gm, text = General Motors".

I can grab the Title with: {xen:helper userFieldTitle, car}.

Then I can grab the the value for the current user with: {$user.customFields.car}

How can I go about grabbing the Field ID and Text associated with the value?


Ok, I got it. Lots of searching plus some trial and error.

You can use this:

{xen:helper userFieldValue, $userFieldsInfo.my_identifier, $user, {$user.customFields.my_identifier}}