Unable to add form actions to modal

Hi,

I've got a resource with a simple form for creating / editing. I've got a table that displays all the items on the index. Each row in the table has an edit button that opens the edit page in a modal slideover. At the bottom there is a "Save changes" and "Cancel" button.

I'd like to add an additional button to the bottom, but I'm unable to get it to show.

I added the below to my EditItem.php in the Resource Pages directory and the button didn't show.

protected function getFormActions(): array
    {
        return [
            ...parent::getFormActions(),
            Action::make('foo')->action('bar'),
        ];
    }


I also tried getModalActions which made no difference.

If I change the page to be a separate page rather than a modal, the button does appear - but that's not what I want.

I'm at a loss, so any ideas welcome.

Thanks
Was this page helpful?