Detail View Formatting

#1

I haven’t been able to figure out how to add number and date formatting to field values on the detail view for a single record. It doesn’t seem to follow the styles I’ve set up in the data model, although it is respected in the rows on table views.

In the image below, Effective Date should appear as “4/10/2019” and Estimated Weekly Revenue should appear as “$7,000”. How can I format these values as they are elsewhere in Metabase?

#2

Hi @harrywynn
Good catch! It seems like it’s missing the formatting properties.
https://github.com/metabase/metabase/blob/ff2141a4c2b5d72c64b160f4b65a7c3d95f7d02b/frontend/src/metabase/visualizations/visualizations/ObjectDetail.jsx#L110-L114
Can you create a new issue for this?
https://github.com/metabase/metabase/issues/new

#3

Done!

1 Like