How can confirm or cancel the action in toggle
hey guys, i have this code
What I want is that when I click the toggle to go to true it asks me if I really want to confirm the action or the change of state from false to true, if I click yes to make the state change, if I click no that keep the same state in false... I'm trying this code but it doesn't work for me, is there something in filament that allows me to do this?
Thanks friends!
4 Replies
any idea bout this friends?
i try with this code but is not working!
i found this in the documentation, but can't understand how can add a confirm or cancel modal?
finally i found a solution for my problem... i use an Action for this case that i need a modal with confirmation!
after i close the action i disable action edit and update the toggle to true and all the actions is disable now 😎 💪 🍻
maybe this can help you, if you don't want to add a row action
https://discord.com/channels/883083792112300104/1247909942317547601/1250347583277105242
Thank you bro, but the row action it's working perfect for me... thank you so much