૨σɳ
Custom confirmation modal
Hello Community !
Could anyone advise me the best ‘filament way’ to have a custom confirmation in my case ?
I have a calendar showing events which are linked to resources, like “teacher” or “classroom”.
There are different ways to create or modify the events :
1. A classic form with a save action
2. The same form, but the user can click in the calendar to create the event on that day (not actual code for clarity)
3. Moving an event (drag & drop) between days
If one or more of the resources linked to the event is already occupied in another event, I’d like to ask confirmation to the user, and then proceed with the modification or cancel it.
Case #1 can use requiresConfirmation() logic, this one is obvious.
But for #2 and #3, I don’t see the ‘right’ way to do it…
And of course, I’d like to have something that can be used in all the cases.
Any ideas ?
Thanks for your time
2 replies