How to write current user's name into a different collection

I’m pretty new to Corvid. Just added “members” to my site, what am I trying to do is after the user login, they can submit an absence request, the form submission to an absence collection works fine. But user name is under “Members/PrivateMembersData”, I could display the user’s name on the page, but how do I get the current user name into my absence collection so I know the request is from whom? Thanks.

You say that “the form submission to an absence collection works fine”, so what is your problem? Aren’t you saving the current user’s name in the collection?

No, that is the problem. The current user’s name is in “Members/PrivateMembersData” collection, how do I get it saved into the “absence collection”?

Do a separate database insert() to the collection that you want.