Creating Custom Link Fields
Users can create Custom Link Fields within DocTypes by following these steps;
Step 1: Go to Customize Form in Setup Module.
Setup >> Customize >> Customize Form
Step 2: Select the desired form in Enter Form Type field.

Step 3: In the Fields section;
Insert a new Field row and set the attributes as;
- Label: Desired label that user wishes to display in the form
- Type: Set as 'Link'
- Name: Desired name for the field
- Options: Enter the name of the Doctype to which the field is linked

Note: Please refer to https://frappe.io/kb/customization/form-architecture for more information about the form structure