How to call a function or show field while we duplicate a existing document?

Is there a way to show a particular field only if the document is duplicated from other document?