How to display a read-only field from other table?

I have a doctype Foo with field Bar. I need to display its value in doctype Baz. How can I do that? Right now Foo contains link to Baz, but thats about it for cross-relations

Hello @hello1

Assuming Foo doctype has 2 fields, first_name, and last_name
And Baz doctype has 3 fields, doc_ref(link), first_name, and last_name

In the Baz doctype, open the field and just simply add a code in “fetch from”.
Here are screenshots of it