Custom function to copy fields from contact to potential module

Custom function to copy fields from contact to potential module

Did anyone created a Custom function to copy fields from contact to potential module? Suggestion or  help would be appreciated.