Form actions in custom Login page
Hey, I'm struggling to find the way to render the form with custom actions
I saw the "getFormContentComponent" function but have no clue how to render it in a custom view
Thx for any help!
Solution:Jump to solution
I have never tried that, what does the request logs state, if you change it to ->action('authenticate') does it work?
13 Replies
In the page class just add the actions as per the actions doc:
https://filamentphp.com/docs/3.x/actions/adding-an-action-to-a-livewire-component
I'll need some help then please, I'm willing to render an action group with 2 actions
When putting it at the end of the form and clicking on the authenticate action nothing happens
Else I'm not sure how to render the group
Provide your action code.
authenticate action is from the base Login page from filament (the one not working)
register action is a simple link
The actual actions? without an ->Aciton() they will not do anything.
can you elaborate please ? I'm not sure to understand
filament is using this in the login page but I don't really know how to use it
A filament action has an action i.e.
So it expets an actual action, quite often when no action(fn() => true) is set the action won't do anything.
It's also work pointing out the form should be filled too if it's a create form. i..e $this->form->fill([]);
Oh, it has ->submit('authenticate')
Tho I'm using the function from the base Login page and it is protected, maybe that's why ?
So you want to submit the form to 'authenticate' function?
Yes that's it
Solution
I have never tried that, what does the request logs state, if you change it to ->action('authenticate') does it work?
Will tell you in some minutes
changing it to an action instead of submit is working thx π
can we use passwordReset, registration ... method in custom login page ?