Default To email address field

I’ve got customers and vendors with email addresses. When I select any document (SO, Inv, PO) and select email. The customer or vendor’s email is not picked. I have to manually type the email. Is this by design or error?

@iadr3805 Its by design… but If you want to set it to default you can customise it.
Try using cur_frm.set_value.

Thanks for the quick response. I can test and make functional changes but am not a developer to make code changes.
if you can please provide more information on how I could make the change using cur_frm.set_value I could give it a try.