© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2mo ago•
3 replies
bardolf_6969

Form does not fill with data

3️⃣v3Actions
I have a filament page that mounts a form action -

protected function editAction(): Action
{
return Action::make('edit')
->label('Edit')
->modalHeading('Edit post')
->fillForm(fn (ForumPost $post): array => [
'body' => $post->body,
])
->form([
Components\MarkdownEditor::make('body')
->required(),
])
->action(function (array $data, ForumPost $post) {
$post->update([
'body' => $data['body'],
'body_html' => Markdown::render($data['body']),
'edited_at' => now(),
]);

Notification::make()
->title('Post updated')
->success()
->send();
});
}

This is called in my blade file with {{ ($this->editAction)(['post' => $post->id]) }}. The form opens but fails to fill in the data and I don't understand why it is failing.
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

Fill Form Data
FilamentFFilament / ❓┊help
3y ago
fill form with initial data before show form
FilamentFFilament / ❓┊help
16mo ago
Fill custom edit page form with data
FilamentFFilament / ❓┊help
2y ago
mutate form data before fill
FilamentFFilament / ❓┊help
3y ago