Hi colleagues, I'm still having this issue and can't seem to collect the parameter sent via URL on the custom page.
I'll show you the changes I've made:
- I've registered the custom page in the employee dashboard that will collect the parameter sent via URL.
public static function getPages(): array { return [ 'newsurvey' => Pages\CreateSurveyEmployee::route('/newsurvey/{survey}'), ]; }
- On the custom page (ListSurveyEmployee) that displays the list of surveys with the corresponding action, I add the parameter sent via URL.
Action::make('makeSurvey') ->label('Realizar Encuesta') ->icon('heroicon-o-pencil') ->color('success') ->visible(function ($record) { return $record->status === 'pendiente'; }) ->url(fn(Survey $record): string => CreateSurveyEmployee::getUrl(['survey' => $record->id])),
- Finally, on the custom page (CreateSurveyEmployee), I need to collect the parameter sent.
How should I do this? I can't save the parameter sent.
Best regards.