Opportunity form

hello,

i want to add one more select options in CRM->Opportunity in Opportunity from select.

I have added via customize form in Opportunity from value off Sales Partner, when added field Sales partner with link to Sales Partner doctype with depends on value = eval:doc.enquiry_from===“Sales Partner”

now i need to make what when i chose Sales Partner the field customer_name fill automatically like when choosing lead or customer. Someone can help me on this?

thanks

i have made it to fetch with custom script
cur_frm.add_fetch(‘sales_partner’,‘partner_name’,‘customer_name’)
but when i want to save opportunity it pop up Error: Value missing for: Contact Name

Were you able to fix this. Seems like an unrelated error.