Customise field auto fill

I am new to erpnext.i want to populate customer address and contact no in respective field after selecting customer .can any one explain how it can be achieve.

Welcome @hemant_Dabholkar
use add_fetch to fetch values from Customer.
Check this link - > Fetch Values From Master

Thanks Sangram,
this script not working

‘address’ is your link field name? Where you write it. It is your custom form or default one.
If you are doing it for default form. Write Custom Script.

e.g for Customer.

and for custom form write it in your doctypes .js file. Check whether all given fields are correct.

1 Like