Custom field for a name linked to activity log

Hi, Everyone
I have a workflow in which a purchase invoice goes through various people. I want to create a field/tab to showcase the name of the approver/submitter of that invoice.

For example, if I approve the invoice, the moment I click on submit/approve button, the tab/field should display my name.
I know I can see this at the bottom of the page in the Activity Log, but I want to display it in a separate field. How can I achieve this?

Thank you.

@rs115199789 On the on_submit event you can add this code.

def on_submit(self):
		self.db_set(Fieldname, frappe.utils.get_fullname(frappe.session.user))
     

So i need to create an event first ?