Client script to fetch address from address doctype based on selected customer from dropdown

Hi, I am new to erpnext.

I have three doctype

  1. Address
  2. Customer
  3. Job

Customer is link with address
Job is link with Customer

Based on change selection of customer from dropdown in Job doctype, i want to fetch customer address and put in address field of job doctype.

How can I achieve this task.

Hi @nadeemkhan.1991,

I think first you should the documentation because your scenario will solve from it.

Thank You!

Hi @NCP ,

Thank you for your response.

I have check that documentation before but in my scenario address doctype is not directly connected to Job doctype via link field, instead customer is connected to job doctype and customer is connected to address doctype via link field.

I just wanted to fetch the address of customer based on customer selection in Job doctype.