I have built a Custom Field Type similar to the built-in Relate field which stores a record name and requires two additional custom fields alongside it to store the record ID and module. I have not inherited from the relate field because the functionality…