remove/hide cancel button from create/edit resources
How can we remove the cancel button
6 Replies
Overwrite the
getFormActions
method on the create/edit page.protected function getFormActions(): array
{
return [$this->getCancelFormAction()];
}
}
?
@hdaklue this create a new save button, i want to hide cancel button
It does the same task as it overrides the original form.
DD(parent::getFormActions()
then Arr::except()
but it's the long way.