Display combined/customised values of relationship type in a dropdown

System Information
  • Strapi Version: v3.6.3
  • Operating System: Docker
  • Database: Postgres
  • Node Version: v12.20.1
  • NPM Version: 6.14.10

I am looking for help to modify the admin panel. In a component, I want to display customised names in a dropdown of a related type.

In my example, Person has two fields: Firstname and Lastname. However, in the dropdown, I can only choose between Firstname, Lastname or id.

What I would like to display in the dropdown is: Fullname

eg.
Firstname: Erika
Lastname: Muster Fullname: Erika Muster`

My problem is very similar if not the same of the poster of this issue: Entry Title dropdown in Edit View doesn't list fields with relation type · Issue #8280 · strapi/strapi · GitHub
There is a workaround that describes how to store Fullname in the database:
Entry Title dropdown in Edit View doesn't list fields with relation type · Issue #8280 · strapi/strapi · GitHub

Instead, I am looking for a way to modify the admin panel to display Fullname as storing it in the database doubles the data.

I am new to Strapi am not sure if this is at all possible. I had a look through the strapi-admin panel.

  • It would be of great help to know what file to modify?
  • Do I need to use any hooks?

Thanks a lot in advance.

2 Likes

Hi, did you resolve this issue