rapolasgruzdys
Unable to set a default value for \Filament\Forms\Components\Select
That makes sense, thank you for your time.
Just for context, I'm using the event sourcing architecture so the default CRUD operations don't cut it here, so I was looking to format the state in my own way, instead of overriding the update process in multiple places.
I'll try to format the state as you've suggested or override a couple of methods in a worst-case scenario
12 replies
Unable to set a default value for \Filament\Forms\Components\Select
I'm using admin panel and it's just a regular page - nothing custom. I haven't even seen any examples online, showing how to preselect options. So it's weird.
I have a resource, it has a defined form. In the form, I call
Select::make('test')->multiple()->options(['foo' => 'FOO', 'bar' => 'BAR'])
So how do I make it preselect foo
or bar
? Assuming these options are not from a relationship12 replies