How to Add a Color Indicator to the Employee List Based on Contract Date in ERPNext?

Hello ERPNext Community,

I am looking to customize the Employee list view in ERPNext to include a color indicator that changes based on the contract date. Specifically, I would like to add a field that displays as green or red depending on whether the contract date has passed or not.

I would appreciate any guidance or examples of scripts and customizations that can help achieve this. Thank you!

@Ali-88 check this How to set Listview indicators to anyfield

2 Likes

Indicators cannot be set for two fields at the same time. If the indicator is set for the status field, it won’t be set for any other field. To achieve this, you will need to apply custom logic. I’ve provided a reference for you. You’ll need to override the Employee list code first.

Reference:

1 Like