FilamentF
Filament6mo ago
Darpan

Disable "Create & create another" checkbox in createOptionForm modal (Filament 4.x)

I am using Filament latest 4.x beta and trying to disable the "Create & create another" checkbox in a createOptionForm() modal.

Select::make('categories')
    ->relationship('categories', 'name')
    ->multiple()
    ->preload()
    ->createOptionForm([
        TextInput::make('name')->required(),
    ])
    ->createOptionAction(fn ($action) =>
        $action->modalWidth('md')
        //->createAnother(false) // Not available
    );


Trying to use createAnother(false) throws an error $action is not a CreateAction.

Is there any way to disable that?
Was this page helpful?