I want to make a field read only when any user is logged in but I don’t know how. Can anyone help me with this?
You can use this following code :
eval:frappe.session.name != "Administrator"
It means when the logged user is an Administrator it will read only.