How to display other field name in link field of child table. we not want display default name field

i have some duplicate name in (custom_field) so we want display custom_field record in link child table field . how we can do achive this or we not want to display default name
we have try with naming but not solution .
ex for xyz is child table and under some field custom_name.
custom_name have some duplicate name . xyz child table link with other doc type
but we want display custom_name field record. not display default name field
any way
please give solution
thanks

I would create a custom field in the doctype (Not child table). Then in the before_save event we can generate a custom name with respect to child table values.

Most probably I would not use that field in the name but it is a gem for search field. So user can type a few letter in the link field and Frappe will recommend that item.

1 Like