Employee Id and Employee Name in one field

Hello,
Please check below screenshot from Doctype Attendance. :point_down:

Here in field “Employee” both “Employee Id” and “Employee Name” is showing.
Is there any way to hide the employee name?
Only Employee Id should be there, because Employee Name is already there in next field.

One more reason to hide it is Report View.
Below is the screenshot of report view without “Employee Name” Column :point_down:

And When I adds column “Employee Name” to report, Employee name is showing in both field.

My simple requirement is to show Employee Id in one column and Employee Name in another column.

Any suggestions and hints are highly appreciated.
Thanks. :slightly_smiling_face:

Hi @umarless,

yes, it’s possible. please check it.

Before:


After:

Please apply the client script for the Attendance doctype.

frappe.form.link_formatters['Employee'] = function(value, doc) {
    return value;
};

Reference: Formatter For Link Fields

I hope this helps.

Thank You!

1 Like