© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
5 replies
Ander

Default selection for radio element - not working!

class FormPaySchedule extends Component implements Forms\Contracts\HasForms
{
use Forms\Concerns\InteractsWithForms;

public $title;
public $type_pay_schedule;
public $pay_schedule;

protected function getFormSchema(): array
{
return[
Wizard::make([
Wizard\Step::make('paso 1')
->schema([
Card::make([
Radio::make('type_pay_schedule')->label('')
->options([
'option1' => 'by employee',
'option2' => 'everyone employees',
])
->descriptions([
'option1' => 'A',
'option2' => 'B',
])
->default('option1')
->required(),
])
]),
...
image.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Default selection for radio element - not working!
FilamentFFilament / ❓┊help
3y ago
Radio default not working
FilamentFFilament / ❓┊help
3y ago
Radio default not working on form widget
FilamentFFilament / ❓┊help
3y ago
Default Selection for Select Field
FilamentFFilament / ❓┊help
3y ago