Display customer firstname + lastname instead of docname

Hi everyone,

I’m writing an insurance claiming app on frappe, I’ve created one doctype named ‘Customer’ and a child doctype called ‘Policy’. When adding a new Policy I can only select docnames from dropdown and I would to list customer name like ‘John Doe’ instead of docname as seen below in the listview

How do I accomplish this?

Thanks for your awesome support!

Luvanda

Hi, I think this answer belongs to https://discuss.frappe.io/

Greetings

Hi @federico_calvo, thank you for pointing out. I’ll add it there

You have to create a new readonly field next to the link field and fetch the data with a script.

Hi @joelios, thanks a lot it worked!

1 Like

Youre welcome