The below script is working fine when creating new doc by normal way,
but when creating the doc from another doc dashboard with the + sign , it didn’t fetch the value .
I have tried ‘item_name’ instead of onload and I have tried frm instead on cur_frm
but still the same
any idea?
frappe.ui.form.on(‘Support Ticket’, {
onload: function(frm) {
cur_frm.add_fetch(‘item_name’, ‘site_name’, ‘site_name’);
}
});