List View Formatter not working on custom fields

I am trying to format the Item List view by following this.
The issue I am facing is, the formatters I am defining are working fine with default ERPNext fields, but are not applying to the custom fields I have added.

For Example:

frappe.listview_settings['Item'] = {
	
  formatters: {
    item_group(val,col,row) {
    	return val ? val.bold();
    },
    workflow_state(val,col,row){
    	return val ? val.bold() : "N/A";
    },
    etsy_listing_id(val,col,row){
    	return val ? val.bold() : "N/A";
    }
  }
};

This is rendering as this:

Help is highly appreciated
Thanks

ERPNext: v12.15.0 (version-12)
Frappe Framework: v12.13.0 (version-12)

BUMP
@sanjay

change to

item_group(val,col,row) { return val ? val.bold() : “N/A”; },

V13 it works thru custom script as well.

frappe.listview_settings['Item'] = frappe.listview_settings['Item'] || {};

frappe.listview_settings['Item'].formatters = {

	item_group(val,col,row) {
    	return val ? val.bold() : "N/A";
    },
    workflow_state(val,col,row){
    	return val ? val.bold() : "N/A";
    },
    etsy_listing_id(val,col,row){
    	return val ? val.bold() : "N/A";
    }
	
};
2 Likes

It is working on the item group and workflow state column, but not working on the custom field column.
That is my issue.

v13 it is working as expected, v12 it is not. :frowning_face:

BUMPING Again.