Set details from another linked doctype to my doctype

Hi,

I need to set details from another linked doctype of linked doctype .
what might be the best logic for this?

eg: I am making a library member doctype linked to user and the user is linked to another doctype called docX when the
library member is selected from list then need to set the data from docX doctype to my doctype.

@jamsheer sorry, not understand what you are talking about.

if you want to add linked field to another doctype, please refer this.
https://frappe.github.io/erpnext/user/manual/en/customize-erpnext/customize-form.html
http://frappe.github.io/frappe/user/tutorial/

Note: please don’t mention anyone unless you are replying

Thank you …!
I think the problem is solved…