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

XF 1.4 customFields.x.field_value - First character only?

Discussion in 'Troubleshooting and Problems' started by Rayman, Nov 21, 2014.

  1. Rayman

    Rayman Member

    Hi,

    I'm not sure what I'm doing wrong exactly, but I am using {$message.customFields.x.field_value} in template message_user_info. (Replace X with the fieldid)

    However, it only prints out the first letter.

    Is this normal?
     
  2. Mike

    Mike XenForo Developer Staff Member

    {$message.customFields.x} itself is the field value.
     
  3. Rayman

    Rayman Member

    Hm.

    Is there a way to return the 'phrase'? I assumed field_value would return the 'phrase' rather than the 'id'.
     
  4. Mike

    Mike XenForo Developer Staff Member

    Code:
    {xen:helper userFieldValue, x, $message, $message.customFields.x}
    Should work I believe.
     

Share This Page