© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
7 replies
Junaid

Unable to add Actions Inside Placeholder content of edit modal form.

How can I add an action inside Placehoder inside form widget.
Here is how I have used Placeholder:
Placeholder::make('notes')
->label('')
->content(
function ($record) {
if ($record?->notes) {
foreach ($record?->notes as $note) {
echo "<div class='bg-gray-100 p-2 mb-2 rounded-lg'>";
// echo "<div class='text-sm text-gray-500'>{$note->user->name} - {$note->created_at->diffForHumans()}</div>";
echo "<div class='text-sm'>{$note->content}</div>";
echo "</div>";
}
}
}
),

I am displaying the notes of a user and I want to add a delete/remove action next to each note
Solution
Why don't you use a Repeater instead?
If you really want custom formatting, you are better off with a custom view file or view field
Jump to solution
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

Unable to add form actions to modal
FilamentFFilament / ❓┊help
2y ago
Add Edit and Delete actions to modal
FilamentFFilament / ❓┊help
3y ago
Edit modal actions
FilamentFFilament / ❓┊help
3y ago
Actions inside modal
FilamentFFilament / ❓┊help
3y ago