V2 to V3 Action with Form adapt to changes
What I am trying to do:
Have an action button in a custom page that displays a form with a select and then calls a function with the result of the select
What I did so far was working in V2, and I tried two more actions, Nted in the code comments
The button show up with
The button show up with
{{ $this->genWallAction }}
in the blade file.
I get the error message: https://flareapp.io/share/47qKp0BmFlare
Too few arguments to function App\Filament\Pages\Tools::genWallPdf(), 0 passed in /Users/dandodd/Projects/testtrust/vendor/filament/actions/src/Concerns/InteractsWithActions.php on line 320 and exactly 1 expected - The error occurred at http://localhost:8000/admin/tools
1 Reply
Function called by action:
My issue was that the name that the text in the
Action::make('getWallPdf)
matched the function I was calling, skipping the form. I think this is referred to in the docs as the Low impact change with Actions under Action execution with forms
.