Currently, such field always appears at search by input. We could add more fields. Is it any way to remove that field from search by? The problem is that we set a virtual field as a tile and users are confused about what Is that field is coming from.
Location Title is a virtual field that set as a title, and we just added Custom ID there that is a real field. We would like to remove Location Title from search by input.
Hi
@956827460975083550- you should be able to achieve this by defining
listSearchableFields
on your collection. Define the array and only include the fields that you want to search against, like this:
admin: {
listSearchableFields: ['customID']
}
Hi
@854377910689202256Yes - I did that and put CustomID only into this array, but virtual field that is set to used as title - Location Title - is still displayed first, please see the image.
ah I see the issue now,
listSearchableFields
does not overwrite the default search input... I'm not sure what the best solution is here. If you could open an issue over on GitHub for us we can look into it properly next Monday 🐛
https://github.com/payloadcms/payload/issuesPerfect thank you
@956827460975083550- I'll loop back when we get this resolved 👍
Star
Discord
online
Get dedicated engineering support directly from the Payload team.