Display-Only fields from linked DocType

Is there any way to create temporary fields in a form so they are not stored in the database and only shows value from the linked DocType?

try having “HTML” field.

What’s the use case?

Well i was able to do it using the HTML field but I had to write custom script to fetch the data from the linked DocType.