© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•8mo ago•
2 replies
jmrufo

Sending data from a custom page to another custom page

Hello colleagues. I'm developing a survey application with Filament and I'm encountering the following problem.

I have two panels: adminpanel and employeepanel.

From the employeepanel, users access a custom page (ListSurveyEmployee) that displays a list of the surveys they need to complete.

In each of these records, I've created an ACTION called TAKE SURVEY. This is the code for my ACTION.

Action::make('makeSurvey')
->label('Realizar Encuesta')
->icon('heroicon-o-pencil')
->color('success')
->visible(function ($record) {
return $record->status === 'pendiente';
})
->url(fn ($record) => route('filament.employee.pages.create-survey-employee', ['survey' => $record->id]))

When the user clicks on this option, they are redirected to another custom page (CreateSurveyEmployee), where a form should be displayed with the fields to complete for the assigned survey.

The problem I'm having is that I don't know how to collect the ID of the survey the user wants to complete on the CreateSurveyEmployee custom page so I can then create the logic.

This is the custom page code that should collect the parameter.

class CreateSurveyEmployee extends Page
{
protected static bool $shouldRegisterNavigation = false;
protected static string $view = 'filament.employee.pages.create-survey';

protected static ?string $title = 'Realización de Encuesta';

public function form(Form $form): Form
{
return $form
->schema([

]);
}
}

Can anyone help me with this?

Thanks.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Creating a Custom Page that fetch data from another resource
FilamentFFilament / ❓┊help
3y ago
Pass data to widget from custom page
FilamentFFilament / ❓┊help
2y ago
pass data to widget from custom page
FilamentFFilament / ❓┊help
3y ago
Posting data from one page to another with a form
FilamentFFilament / ❓┊help
3y ago