How can we show a TrueFalse value as "Yes / No" in a list view on V17?

In Umbraco 13 we were able to use Angular on columns in the listview like this:

{{ value == 0 ? “No” : “Yes” }}

This would then render a TrueFalse field as “Yes” or “No” on a ListView. Now that Angular is removed is there a way to do this in V17?

As a side note it would be really good if this was out of the box to allow us to format how True/False field is surfaced on a listview.

Hi @deanparkr ,
try this syntax: ${ value == 0 ? "No" : "Yes" }

To format Collection View (ListView) columns now, Umbraco uses Umbraco Flavored Markdown (UFM). This is the new out-of-the-box standard for handling advanced labels and column templates.

Instead of the old {{ }} Angular bindings, UFM uses a JavaScript-like expression syntax wrapped in ${ }.

Hope it helps!

2 Likes

And here is the docs on Umbraco Flavored markdown:

1 Like