Fixed Value in custom profile field - Using text

Marc

Well-known member
The value display html in the custom profile fields seems to be using the text rather than the value of a field .... So for example, I entered the following for a flag:

england - UK

UK is selected in user profile so using:

<img src="../{$value}.gif" />

I would have expected england.gif to be shown, but its looking for UK.gif ... Also tried with ValueUrl just incase and same result
 

Mike

XenForo developer
Staff member
That is the designed behavior, but I can see how it's limiting so we'll probably add a new token to represent the "choice" rather than the "value" (text)
 

Marc

Well-known member
That is the designed behavior, but I can see how it's limiting so we'll probably add a new token to represent the "choice" rather than the "value" (text)
Top man :)

Could actually do with changing the wording too as one says text and the other says value when it actually represents the text (hope that makes sense lol)
 

Kier

XenForo developer
Staff member
Marc, I think we also expose {$choice} - could you verify please?
 
Top