-
PackageForm builder Package Version4 How can we help you?how can i do radio option checked |
Beta Was this translation helpful? Give feedback.
Answered by
enessvg
Dec 25, 2025
Replies: 2 comments
-
use Filament\Forms\Components\Radio;
Radio::make('status')
->options([
'draft' => 'Draft',
'scheduled' => 'Scheduled',
'published' => 'Published'
])
protected function mutateFormDataBeforeFill(array $data): array
{
$data['status'] = 'scheduled';
return $data;
}Try this |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Goldmayer
-
|
Use If you are using the Form builder in a Livewire component, add |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try this
Would you mark this answer as solved if it helps you?