Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Search in select field which is related to another collection

default discord avatar
prabhat26792 years ago
3

We have a collection that has a field related to another collection. When I try to search in that dropdown, some items donot come. Is there something that can be done to make the search better?


e.g.


{
      name: 'Person',
      type: 'array',
      fields: [
        {
          name: 'id',
          type: 'relationship',
          relationTo: 'city',
          label: 'value',
          hasMany: true
        },
        {
          name: 'value',
          type: 'text',
          admin: {
            readOnly: true,
          }
        },
      ],
      admin: {
        components: {
          RowLabel: ({ data: { value } }: any) => {
            return value;
          },
        },
      },
  • default discord avatar
    eddiedevlast year

    bump i am having this same issue and created another post about it.

    @1110137799459487775

    any luck?

  • default discord avatar
    prabhat2679last year

    Hey

    @956312590793977957

    , this got resolved when I upgraded the version of payload. its running pretty smooth now with version

    1.10.2
  • default discord avatar
    eddiedevlast year

    Hey

    @1110137799459487775

    ty will take a look

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.