Hide close button in filament form

Is it possible to hide "Close" button in filament form?
No description
Solution:
You could chuck this in the create page: ```php protected function getCancelFormAction(): Action { return parent::getCancelFormAction()->visible(false);...
Jump to solution
3 Replies
toeknee
toeknee6mo ago
Yes That looks like a Create page opposed to a custom form. So in that scenario you want to hide the page action
Solution
toeknee
toeknee6mo ago
You could chuck this in the create page:
protected function getCancelFormAction(): Action
{
return parent::getCancelFormAction()->visible(false);
}
protected function getCancelFormAction(): Action
{
return parent::getCancelFormAction()->visible(false);
}
dzoniia
dzoniiaOP6mo ago
Thanks, that's exactly what I was looking for

Did you find this page helpful?