How to easily change the placeholder text on Search?
I want every resource will have different search placeholder, for example in Child Resource, the placeholder should be "Search First Name, Email or Phone Number". In Application Resource "Search Control Number, Status, Name".
Solution:Jump to solution
This is was my solution: I created filament.css and filament.js and added it to my AppServiceProvider.
AppServiceProvider.php
```
Filament::registerScripts([...
7 Replies
You are referring to this placeholder, right?
I don't thik there's a way to change that placeholder text. At least none that I know of
This is in the translation keys if I remember correctly... I'm not sure there's a way to change it for each resource.
Ohh..
Solution
This is was my solution: I created filament.css and filament.js and added it to my AppServiceProvider.
AppServiceProvider.php
filament.css
filament.js
Result.
FYI Filament 3.0.72 added support for setting the placeholder text for the global search: https://github.com/filamentphp/filament/pull/8884/files
GitHub
Add column labels to table global search field by bernhardh · Pull ...
Changes have been thoroughly tested to not break existing functionality.
Visual changes are explained in the PR description using a screenshot/recording of before and after.
TLDR:
This PR adds th...