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:Jump to solution
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 🔥
Twitter
4 Replies
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 🔥
Twitter
Thanks for this help. Will try and let you know. 😍
Your suggested code is working fine for me. A little issue is there with the
->afterStateUpdated()
. But it might be a different issue.That was a fantastic solution, thank you for the link @LeandroFerreira