Action does not open a custom modal
Hi everyone!
I have a custom query defined on my List Page to group and sum inventory quantity based on locations:
I need a button on each row to display the grouped value detail records. The following code does not open a modal:
Simple blade code to test it:
Thanks in advance!
9 Replies
You will need requiresConfirmation() or form() I beleive to open a modal
I tried with ->requiresConfirmation() but does not work either. I will not show a form
if you remove the above, and use modalContent() with requires confirmation, does it work?
->modalContent()
should be enough I think@Dennis Koch I am using ->modalContent() but does not work
It's a Table Action, right? You imported the right namespace?
Probably should throw an error otherwise.
I don't know what's the issue then, sorry.
I am using Filament\Tables\Actions\Action
@Dennis Koch Sorry for tagging you but I just tried in another resource the same code and it works. The difference between both resources is that in the current resource where the modal does not work, I have a custom query (using getTableQuery()) on the List Page
I suspect that $record->advance() doesn't work in this case
Solution
I just resolved it. The issue was the random value used as ID