Hello,
In ErpNext, we can see the name of the user who created a particular record by applying the ‘Created by’ filter.
But I want the name of the user who created a particular record in the listview of any doctype.
This is possible with a client script for a particular doctype but I have no idea how to implement this thing for multiple doctypes because writing a client script for multiple doctypes is not the proper way.
If anyone has any idea about this let me know
if anyone still needs a solution for this:
just go create a client script or a new js file with the name yourdoctype_list.js
follow the documentation on how to add script for list view here:
then add the following script to the onload event:
Great!
i tried your code in client script, Yes! in the listview i can see the creater’ user(account), but in email format.
How could other fileds e.g. username(or firstnam, lastname) be displayed in listview?
many thanks!