Five Number tools › View Formatting Builder
SharePoint View Formatting Builder and Preview
Paste the JSON from "Format current view" and preview whole rows live against your own sample data. It handles rowFormatter, additionalRowClass and group headers, understands both expression styles (the abstract operator form and the Excel-style =if(...) form), resolves field references like [$Title] per row, and flags unknown element types, bad attributes and unknown operators.
Start from an example (loads the view JSON and sample rows)
Field references in the formatter like [$Status] read from each row here. Numbers and ISO date strings keep their type.
Live preview approx. of the SharePoint rows
The rendered rows appear here.
A close approximation using Segoe UI and the built-in sp-field-severity colors. Fluent UI icons are stand-in glyphs, remote images are not fetched, and real list theming may differ. Row selection and column headers are not drawn.
View formatting notes
- rowFormatter replaces the whole row with your own layout. additionalRowClass keeps the normal columns and just adds a CSS class (so it is ignored when a rowFormatter is present).
- Field references use the internal name, like
[$Title]or[$Status]. There is no@currentFieldat the row level. - $schema should be the v2
row-formatting.schema.json. The allowed elmType values arediv, span, a, img, svg, path, button, p, filepreview. - attributes keys are limited to
href, rel, src, class, target, title, role, iconName, d, aria, data-interception, viewBox, preserveAspectRatio, draggable. - groupProps can carry a
headerFormatterandfooterFormatterfor grouped views. This tool validates them and previews the header once. - Links allow only
http,https,mailtoandtel. This preview never fetches remote images (only inlinedata:images render, remote ones show a placeholder), so nothing you paste reaches an outside server.