Action in custom page
Hello,
Have a simple button in blade view
in my custom page, function challenge() call an action
when try to click button get error
Method Filament\Notifications\Actions\Action::form does not exist.
any suggest?
thanks
14 Replies
it should be like:
and change the method name:
challengeAction
for more:
https://filamentphp.com/docs/3.x/actions/adding-an-action-to-a-livewire-component#adding-the-actiontry
@Lara Zeus i create the component
create the view
i add the component to my custom page
i have no error but when i click on the button nothing happens
any suggest?
did you add:
<x-filament-actions::modals />
in the component
need to add in the page?
try add it to the page 🙂
also see if there is any console error in the dev tools
add in the page and not work...no error man nothing
this is the message in the console
it has to be something related to the names
try change
sendEmail
to challenge
Solution
The action name should match the function name
LOVE YOU
thanksssssssss
🎉
very very thanks mate
anytime 🙂