Toggle with modal confirm
Good afternoon, I am facing a situation where I need to call a confirmation modal, and this has to occur when clicking on the Toggle() component.
Solution:
Jump to solution
Leandro Ferreira (@leandrocfe) on X
💡 Filament Tip: If you want to enhance the Create Form by adding a confirmation modal before submission, use the following code snippet 👇
![From An unknown user](https://images-ext-1.discordapp.net/external/7jZYNatxgida7a7662YeqyezshuX3hVGPjywKs4GEI4/https/pbs.twimg.com/ext_tw_video_thumb/1800168034948009984/pu/img/l0rVZUIJDRCptpPJ.jpg%3Alarge)
Twitter
3 Replies
try this
Thanks, It's fails for me! But I managed to find another solution, showing the confirmation modal when saving.
Solution![From An unknown user](https://images-ext-1.discordapp.net/external/7jZYNatxgida7a7662YeqyezshuX3hVGPjywKs4GEI4/https/pbs.twimg.com/ext_tw_video_thumb/1800168034948009984/pu/img/l0rVZUIJDRCptpPJ.jpg%3Alarge)
Leandro Ferreira (@leandrocfe) on X
💡 Filament Tip: If you want to enhance the Create Form by adding a confirmation modal before submission, use the following code snippet 👇
![From An unknown user](https://images-ext-1.discordapp.net/external/7jZYNatxgida7a7662YeqyezshuX3hVGPjywKs4GEI4/https/pbs.twimg.com/ext_tw_video_thumb/1800168034948009984/pu/img/l0rVZUIJDRCptpPJ.jpg%3Alarge)
Twitter