Custom script to fetch value from Item

Is this the proper script to fetch value from an Item?

cur_frm.add_fetch(“item”,“supplier_discounting_rate”,“supplier_discounting_rate”);

NOTE:
supplier_discounting_rate is also a custom field i added.

You wont know until you try.

If it doesn’t work, make sure the field supplier_discounting_rate is present in your current form as well the document in the link field item.

1 Like

got it working. wrong doctype set in custom script.