Replace Customer 'Status' in List View with Different Status Options

Hi there,

I’m wanting to customize the Status in Customer List View. The ‘Status’ field doesn’t appear on my Customize Form/Customer page so I can’t figure out how. I want to remove the default ‘Enabled’ and ‘Disabled’ and replace them with Status options that suit our business.
The ‘Status’ field doesn’t appear on the Customer pages, so this would have to be made visible as well, with a drop-down box of options.

The new Status field would need to be visible in List View as well.

Any help would be much appreciated.

Thanks!

Helena

You need to create a _list.js and in hooks.py add below,
doctype_list_js = {
“Customer”: “path_to_script_folder/customer_list.js”,
}

2 Likes

Another way to do it is to override the get_indicator method in Custom Script:

frappe.listview_settings['Customer'].get_indicator = function(doc) {
  // your logic
  return [__('Gold Member'), 'green']
}

Thanks @schilgod and @netchampfaris, really appreciate it. I’ll give both of these options a go.

@hcza have you removed status of list view in customers? if yes then kindly share the method with me also.