How to populate options from custom search results
So I was able to manipulate the select search using Gooogle places API.
My problem now is how will I populate or display my label as the address from place api with the places id saved on the column?
3 Replies
Have a look at this trick I wrote some time ago. That should point you in the right direction: Ahh, maybe not as mine populates other fields π
https://v2.filamentphp.com/tricks/geocoding-field-using-select-component
Filament
Geocoding field using Select component by Dennis Koch - Tricks - Fi...
Filament is a collection of tools for rapidly building beautiful TALL stack apps, designed for humans.
There should be a
getOptionLabel()
or similar method to get the label for the saved method@Dennis Koch
Yes I found the solution on the using the
getOptionLabel()
Thank you