can you send the screenshot
that custom script method will automatically fetch the user name of whoever is creating the PO.
and other way is you change the field “created by” fieldType to “Link” and link with employee doctype and set user permission to all employees so whoever is creating the PO he can select his name in Created By field as he will not be able to see other employee in the list if you set the user permission
In print format just use this: {{ frappe.get_fullname(doc.owner) }}
Thats it. Hope you are able to do this.
2 Likes
Dear,
Can you please explain with a short video?
It is because you are logged in with administrator user… please login with any other user
if you can help I want to get a person who submitted the document