Mouth
Well-known member
When displaying custom field number values, please use the language's thousands separator for formatting
For example, I have a custom field titled 'Distance (km's)' as a single-line text box with value match option Number ...
![Screen Shot 2021-04-29 at 11.59.48.webp Screen Shot 2021-04-29 at 11.59.48.webp](https://xenforo.com/community/data/attachments/250/250479-998f8175315c756b7e1fd17e8df6140f.jpg?hash=mY-BdTFcdW)
Default/Users language has a value for thousands separator ...
![Screen Shot 2021-04-29 at 12.09.11.webp Screen Shot 2021-04-29 at 12.09.11.webp](https://xenforo.com/community/data/attachments/250/250480-d197ca88a04b8593c7db087a5cdd5b4c.jpg?hash=0ZfKiKBLhZ)
But the separator is not applied when displaying the field value ...
![Screen Shot 2021-04-29 at 12.10.18.webp Screen Shot 2021-04-29 at 12.10.18.webp](https://xenforo.com/community/data/attachments/250/250481-488c838f64e92035934cc2a84d90b7a7.jpg?hash=SIyDj2TpID)
If you have a Date type custom field, then the value display is formatted according to date format in the default/users language. Thus, seems not formatting number type fields by thousands separator could be an oversight/bug.
Two outcomes possible;
1. Automatically apply the language's thousands separator when displaying custom field number type values
2. Utilise the custom field's Value display HTML to allow formatting of the value, similar to how formatting of numbers used for displaying threads/messages on
For example, I have a custom field titled 'Distance (km's)' as a single-line text box with value match option Number ...
![Screen Shot 2021-04-29 at 11.59.48.webp Screen Shot 2021-04-29 at 11.59.48.webp](https://xenforo.com/community/data/attachments/250/250479-998f8175315c756b7e1fd17e8df6140f.jpg?hash=mY-BdTFcdW)
Default/Users language has a value for thousands separator ...
![Screen Shot 2021-04-29 at 12.09.11.webp Screen Shot 2021-04-29 at 12.09.11.webp](https://xenforo.com/community/data/attachments/250/250480-d197ca88a04b8593c7db087a5cdd5b4c.jpg?hash=0ZfKiKBLhZ)
But the separator is not applied when displaying the field value ...
![Screen Shot 2021-04-29 at 12.10.18.webp Screen Shot 2021-04-29 at 12.10.18.webp](https://xenforo.com/community/data/attachments/250/250481-488c838f64e92035934cc2a84d90b7a7.jpg?hash=SIyDj2TpID)
If you have a Date type custom field, then the value display is formatted according to date format in the default/users language. Thus, seems not formatting number type fields by thousands separator could be an oversight/bug.
Two outcomes possible;
1. Automatically apply the language's thousands separator when displaying custom field number type values
2. Utilise the custom field's Value display HTML to allow formatting of the value, similar to how formatting of numbers used for displaying threads/messages on
forum_list
and forum_list
uses phrase x_k
for {number}K
Upvote
2