how can i fetch the username whenever i create a new item
strong text

here when i add new item user name should fetch automatically
current/login username, right?
yes the user who is adding the item Mr @NCP
its showing user instead of actual name
So you have to apply the client script for that,
You will need to remove the link field and set the data field type, and then apply it.
frm.set_value('user_field_name', frappe.session.user_fullname);
let me provide some more details to better understanding
You have to write a custom server/client side logic and set it according to the scenario! I have provided what you wanted full username. I have given its syntax.
@NCP Solved
![]()




