© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•13mo ago•
1 reply
Pedroesca

Heading value

I have a custom page:
protected ?string $heading = null;
class ProjectStepper extends Page
public function mount($recordId): void
{
$this->record= Project::findOrFail($recordId);
$this->heading = $this->record->name;
}
Here it correctly assigns the title dynamically; but, when I try to perform the following action:
protected function getHeaderActions(): array
{
return [

Action::make('create')
->icon('heroicon-c-plus')
->color('graydark')
->label('Nueva Tarea')
// ->url(TaskResource::getUrl('create', ['project_id' => $this->record->id, 'title' => 'Nueva Tarea']))
->form([
TextInput::make('title')
->label('Título')
->placeholder('Título de la Tarea')
->required(),
TextInput::make('project_id')
->label('Proyecto')
->default($this->record->id)
->placeholder('ID del Proyecto')
->required(),
])
->openUrlinNewTab(),


];
}
the value of $heading is "reset"
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

Heading Icon
FilamentFFilament / ❓┊help
3y ago
Dynamic Infolist heading
FilamentFFilament / ❓┊help
13mo ago
Heading on Stack?
FilamentFFilament / ❓┊help
2y ago
apex heading shield
FilamentFFilament / ❓┊help
3y ago