© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•13mo ago•
1 reply
Kiran Timsina

Actions not working in forms inside a Widget

When we use any type of action (hintAction, prefixAction, suffixAction) inside the form of a widget, it does not work. A livewire request is made but the form does not load. I also noticed that the code inside the ->action() also does not run.

However, if I remove the ->form() from this action, the code inside the ->action() runs.

public function form(Form $form): Form
    {
        return $form
            ->schema([
                Repeater::make('Create Sales')
                    ->schema([
                        Select::make('supplier_id')
                            ->options()->hintAction(
                                Action::make('create')
                                    ->form([
                                        TextInput::make('name')
->label('Name')
->placeholder('Name'),

                                        
                                    ])
                                    ->action(function ($data) {
                                        dd('what');
                                        $supplierService = new SupplierService;
                                        $supplierService->createSupplier($data);
                                    })
                            ),
                            ])->statePath('data');
                            }
public function form(Form $form): Form
    {
        return $form
            ->schema([
                Repeater::make('Create Sales')
                    ->schema([
                        Select::make('supplier_id')
                            ->options()->hintAction(
                                Action::make('create')
                                    ->form([
                                        TextInput::make('name')
->label('Name')
->placeholder('Name'),

                                        
                                    ])
                                    ->action(function ($data) {
                                        dd('what');
                                        $supplierService = new SupplierService;
                                        $supplierService->createSupplier($data);
                                    })
                            ),
                            ])->statePath('data');
                            }
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

actions AND header widget in EditPage not working in v3
FilamentFFilament / ❓┊help
3y ago
filters inside a widget
FilamentFFilament / ❓┊help
3y ago
MorphOne in Forms is not working
FilamentFFilament / ❓┊help
3y ago
Widget table actions
FilamentFFilament / ❓┊help
2y ago