Dear All i want to add address and contact buttons to item page
I added the field in item doctype as html filed
but i need the next step
the js script to add the button in item page
Check the script in customer.js
thank for reply
i did as you say and i coped
cur_frm.cscript.refresh = function(doc, dt, dn) {
if(doc.__islocal){
hide_field([‘address_html’,‘contact_html’]);
}else{
unhide_field([‘address_html’,‘contact_html’]);
// make lists
erpnext.utils.render_address_and_contact(cur_frm)
cur_frm.communication_view = new frappe.views.CommunicationList({
parent: cur_frm.fields_dict.communication_html.wrapper,
doc: doc,
});
}
}
and add to custome script for item
but it did’nt work and item page come without fields
Hello sir,
Did you got the solution of this?
Because i am also looking for same. If you have solution please help me out
Thanks and regards