F
Filament2mo ago
KA

Show confirmation modal with onchange event?

I wanted to show a confirmation modal while user try to change a select field. Can anyone help me to find the documentation or any tips for me?
Solution:
I think this is exactly what you need 😀 https://x.com/leandrocfe/status/1849339500813566348...
Leandro Ferreira (@leandrocfe) on X
💡Filament Tip: You can use registerActions([]) and mountFormComponentAction to display a confirmation modal directly on live form fields in the Form Builder 🔥
From An unknown user
Twitter
Jump to solution
4 Replies
Solution
LeandroFerreira
LeandroFerreira2mo ago
I think this is exactly what you need 😀 https://x.com/leandrocfe/status/1849339500813566348
Leandro Ferreira (@leandrocfe) on X
💡Filament Tip: You can use registerActions([]) and mountFormComponentAction to display a confirmation modal directly on live form fields in the Form Builder 🔥
From An unknown user
Twitter
KA
KAOP2mo ago
Thanks for this help. Will try and let you know. 😍
KA
KAOP2mo ago
Your suggested code is working fine for me. A little issue is there with the ->afterStateUpdated(). But it might be a different issue.
CGM
CGM2mo ago
That was a fantastic solution, thank you for the link @LeandroFerreira
Want results from more Discord servers?
Add your server