Forum Discussion
Lookup in Lists Board view
To resolve the issue of a lookup column displaying as "[Object object]" in the Board View, you can utilize a custom formatter. The default Board View doesn't show actual lookup values but rather as hyperlinks. The "[Object object]" message indicates this hyperlink display. To rectify this and display the actual lookup values, create a custom formatter using the following JavaScript code:
function formatLookupValue(value) {
// If the value is not null or undefined, it is the actual value of the lookup column.
// Otherwise, it is a hyperlink to the corresponding item in the parent list.
if (value) {
return value;
} else {
return "[Object object]";
}
}
Add this custom formatter to the list view. To do it - open the list view in Edit mode. Click on the Edit Columns button. Select the lookup column you want to format. In the Formatter field, enter the name of your custom formatter function (e.g., formatLookupValue). Click on the Save button. Now, the lookup column should display correctly in the Board View, showing the actual values instead of "[Object object]."