Getting specific fieldname value using Link in DocType Buider

Hello, how can i in a link field get the value of a specific field of the doctype im linking with. im always getting the id field as vale of the doctype im linking to.