Action in infolist does not show the form
I made some widgets that consist of just infolists.
At this point i'm trying to add an action to one of the TextEntries to allow the user to edit a field directly from the widget.
The infolist does show the action icon but the form for the action does not appear.
I am not sure anymore if my approach with widgets makes sense, though it seems like infolists are supported by Widgets.
As an expirement I also made a custom Livewire component with the Infolist, that resulted in the same outcome.
The (simplified) class of the widget looks like this:

Solution:Jump to solution
```php
public function getObjectDetailsInfoList(Infolist $infolist): Infolist
{
...
}...
9 Replies
You probably need to add
<x-filament-actions::modals />
to your component/widget bladeThanks for the suggestion. I didn't know that was necessary.
After adding that component to my blade file I can see two
form
s in the HTML.
When I click the edit button the html is refreshed (the html element is lighting up in the inspector). But the modal does not open, it stays like this <div x-show="isOpen" style="display: none;">
Do you have another pointer for this problem?
The blade file is pretty straight forward
See here. You probably need the HasForms and InteractsWithForms interface and trait. https://filamentphp.com/docs/3.x/infolists/adding-an-infolist-to-a-livewire-component
Unless the widget class already includes them.
Thank @awcodes , I gave that a try but it doesn't make a difference (that's also why I had ommited it from the first snippet). I tried it again after adding the modal component but it needs something something more.
To be clear, which Action are you using? Ie, which namespace is it in?
i'm using this Action
rename your method from
getObjectDetailsInfoListProperty
to getObjectDetailsInfoList
Solution