So I'm trying to add the user's location (field2) into the conversation_userinfo template. I'm using a hook to hook into this and have the following code in the new template:
When I view the page, the word "Location: " is showing up, but the value is not. It just says "Location:"
I'm trying to get the actual value of the field, but I'm not seeing how to do it and the .val isnt' working. Anyone have any ideas on that?
Code:
{vb:data userInfo, user, fetchProfileInfo, {vb:raw conversation.userid}} <vb:if condition="$userInfo['customFields']['default']['field2_title']"><div class="profile-info-item">{vb:phrase location}: {vb:raw userInfo.customFields.default.field2_title.val}</div></vb:if>
I'm trying to get the actual value of the field, but I'm not seeing how to do it and the .val isnt' working. Anyone have any ideas on that?
Comment