Retrieve the data from selection

Hi Guys,

Is it possible to get the data of customer (i.e. Phone No and IC ) and populate it to the field.
I think can do it through javascript but i don’t have the clue on how to get the data of customer. Can i know one of the example to get the data of customer in erp next?
Appreciate the help ya.

@kenny

You can fetch it using add_fetch.

cur_frm.add_fetch("link_fieldname", "source_fieldname", "destination_fieldname")

e.g. cur_frm.add_fetch("customer", "fieldname_on_customer", "fieldname_on_quotation")

1 Like

@thanks sangram