Meta Box
Support Forum
Support › MB Frontend Submission › Remove group action
Hi
Is there a way to add an action when "removing" a group from the front-end just like rwmb_frontend_after_process
--- "Are you sure you want to remove this group?" OK / CANCEL ---
Hello,
Yes, there is a way. Please enable the collapsible setting of the group field and set the default state Collapsed. Please read more on the documentation https://docs.metabox.io/extensions/meta-box-group/#settings
Thanks for your reply, but I can't see how.?
I have a group, and when I see it on the front-end, I can press the "remove" see pic. Then i Want to do and action when removing the group item.
There is a confirmation box that allows users to remove a clone group item, please check this screenshot https://monosnap.com/file/HUR7jxDwTjixz8Hddja2qPvUo4tI24
This is the Javascript code to remove the HTML elements so there is no PHP action hook like rwmb_frontend_after_process. You can use the JS code and listen to the change then do something on your own.
rwmb_frontend_after_process