Autofill field connected data

I have a form with log in, an object connected to the user role and the idea is when an user send a new record for that form the user name appear automatically in that register (table) for that form. is that possible? did I explain myself?