Charles
Charles
FFilament
Created by Charles on 3/25/2025 in #❓┊help
add confirmation to submit / call requiresConfirmation() on StaticAction
My workaround was to add the submit action to the form but then i can't retrieve the selected records
Filament\Forms\Components\Actions::make([
Filament\Forms\Components\Actions\Action::make('submit')
->requiresConfirmation()
->action(function(){
//submit here
})
])
Filament\Forms\Components\Actions::make([
Filament\Forms\Components\Actions\Action::make('submit')
->requiresConfirmation()
->action(function(){
//submit here
})
])
3 replies
FFilament
Created by Charles on 11/11/2024 in #❓┊help
Resource as Navigation Parent of Custom page
Solved it, the necessary attributes to set are

protected static ?string $navigationGroup = 'Zeiterfassung & Ausgaben';
protected static ?string $title = 'Übersicht Zeiterfassung';
protected static ?string $navigationParentItem = 'Zeiterfassung';

protected static ?string $navigationGroup = 'Zeiterfassung & Ausgaben';
protected static ?string $title = 'Übersicht Zeiterfassung';
protected static ?string $navigationParentItem = 'Zeiterfassung';
everything else is redundant and results in unwanted behavior
7 replies
FFilament
Created by Charles on 11/11/2024 in #❓┊help
Resource as Navigation Parent of Custom page
@toeknee Could the problem occur because it's a custom page and not a resource?
7 replies
FFilament
Created by Charles on 11/11/2024 in #❓┊help
Resource as Navigation Parent of Custom page
Thanks for the reply. with the attribute set, the custom page is still hidden as sub item
class TimeEntriesOverview extends Page implements HasTable
{
use InteractsWithTable;

protected static ?string $navigationGroup = 'Zeiterfassung & Ausgaben';
protected static ?string $navigationIcon = 'mdi-timetable';
protected static ?string $navigationLabel = 'ZeiterfassungXXX';
protected static ?int $navigationSort = 0;

protected static bool $shouldRegisterNavigation = true;
protected static ?string $navigationParentItem = 'Zeiterfassung';

...
class TimeEntriesOverview extends Page implements HasTable
{
use InteractsWithTable;

protected static ?string $navigationGroup = 'Zeiterfassung & Ausgaben';
protected static ?string $navigationIcon = 'mdi-timetable';
protected static ?string $navigationLabel = 'ZeiterfassungXXX';
protected static ?int $navigationSort = 0;

protected static bool $shouldRegisterNavigation = true;
protected static ?string $navigationParentItem = 'Zeiterfassung';

...
`
7 replies