Add Button Form Action

I've added a new button in my form action. So there are 3 button now in Edit Page. How can I implement to redirect to other page once the 3rd button (Other Page) is clicked?
No description
Solution:
Got it, added this
->url()
->url()
...
Jump to solution
2 Replies
lazydog
lazydogOP9mo ago
My current implementation
protected function getFormActions(): array
{
$parent = parent::getFormActions();

$parent[] = Action::make('pay')
->color('warning')
->label(__('Other Page'))
->submit('save');

return $parent;
}
protected function getFormActions(): array
{
$parent = parent::getFormActions();

$parent[] = Action::make('pay')
->color('warning')
->label(__('Other Page'))
->submit('save');

return $parent;
}
Solution
lazydog
lazydog9mo ago
Got it, added this
->url()
->url()
Want results from more Discord servers?
Add your server