FilamentF
Filament2y ago
zemo

Is there a way to get the selected label instead of the selected value?

I have a select that displays a list of cities, which will store the city_id.

In another input, I need to get the city name, not its id. The Get $get utility will retrieve the value, not the label. Is there accomplish this, aside from doing an additional query?
Solution
Not really. Even with plain Livewire you'd need to work around this, since the select only transmits it's value not the label.
Was this page helpful?