Update field in module with field from same module

Update field in module with field from same module

Hello,

I'm trying to update a field with API name "Animal_Name" in my "Complaints" module to reflect the data submitted in the field with API name "Name" in the same module upon creation of the record.   Can someone help me write a custom function for that, please?  

Thank you!