Documentation says (about Custom user fields):
xenforo.com
However, custom_fields is only accessible through Profile relation. Following works as intended.
(I hope I am sending this note in the correct forum. It is not a software bug really but might help developers who relies on the documentation if it is clarified)
For advanced actions, you may access fields in templates via {$xf.visitor.custom_fields.fieldId}.
Users | XenForo
Arguably the most important part of a forum is its user base. XenForo contains a wide range of user management tools in the Users section of the admin control panel.
However, custom_fields is only accessible through Profile relation. Following works as intended.
{$xf.visitor.Profile.custom_fields.fieldId}
(I hope I am sending this note in the correct forum. It is not a software bug really but might help developers who relies on the documentation if it is clarified)