Globally Disable "Create & Create Another" Button via Config or Resource-Level Option #17061
MasterAdmin2
started this conversation in
Ideas
Replies: 1 comment
-
Did you already try this one? // .. AppServiceProvider.php
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Filament team! 👋
I'd like to propose a feature that allows globally disabling the "Create & Create Another" button displayed on Create Record pages.
Currently, we can disable this per-page using:
protected static bool $canCreateAnother = false;
Proposed Solutions:
Option 1: Config-based toggle
'pages' => [ 'create' => [ 'show_create_another' => false, ], ],
Option 2: Static default override
In CreateRecord, allow checking a static property or a central default, e.g.:
`protected static bool $defaultCanCreateAnother = true;
protected function hasCreateAnother(): bool
{
return static::$canCreateAnother ?? static::$defaultCanCreateAnother;
}`
Beta Was this translation helpful? Give feedback.
All reactions