FilamentF
Filament9mo ago
Haydra

Nested Actions, Parent Form validation

Hi guys
i have this scenario
parent modal has form and submit is through custom action button which opens another modal, the parent form must be validated before moving to the child modal
->modalFooterActions(function($record){

// child actions
                            return [
                                Action::make('send_request')
                                    ->label(__('actions')['user-new-request-label'])
                                    ->modalSubmitAction()
                                    ->form(function($livewire, Action $action) use ($record){
                                        $requestData = $livewire->mountedTableActionsData[0];
                                        return [
                                            Placeholder::make('notes')
                                                ->label('Notes')
                                                ->content(function(){
                                                    return "notes";
                                                })
                                        ];
                                    })


any help would appreciated, thanks
Was this page helpful?