© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
Ansori

How to edit record using modal on the custom page?

Hello, I have a TaskResource with a custom page inside that called ScheduleTask.
// TaskResource.php
public static function getPages(): array
{
    return [
        'index' => Pages\ScheduleTask::route('/schedule'),
    ];
}
// TaskResource.php
public static function getPages(): array
{
    return [
        'index' => Pages\ScheduleTask::route('/schedule'),
    ];
}

Currently I can trigger a New Task Modal using
 getActions()
 getActions()
function in the ScheduleTask page.
protected function getActions(): array
{
    return [
        Action::make('new_task')
            ->action(function (array $data): void {
                ...
            })
            ->form([
                ...
            ]),
    ];
}
protected function getActions(): array
{
    return [
        Action::make('new_task')
            ->action(function (array $data): void {
                ...
            })
            ->form([
                ...
            ]),
    ];
}

how can I trigger the edit modal with the form filled with the selected task when I click the individual task?
Screenshot_2023-04-19_at_12.33.49.png
Screenshot_2023-04-19_at_12.45.42.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to access the record on a custom page?
FilamentFFilament / ❓┊help
3y ago
Edit only single record with custom page
FilamentFFilament / ❓┊help
3y ago
Eager load record on Edit Page
FilamentFFilament / ❓┊help
3y ago
How to add custom action button on edit modal form
FilamentFFilament / ❓┊help
15mo ago