Opportunity form


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?


i have made it to fetch with custom script
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.