Remove group action

Support MB Frontend Submission Remove group action

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #41077
    vacdkvacdk
    Participant

    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
    ---

    #41089
    PeterPeter
    Moderator

    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

    #41110
    vacdkvacdk
    Participant

    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.

    Remove

    #41111
    vacdkvacdk
    Participant

    Remove

    #41112
    PeterPeter
    Moderator

    Hello,

    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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.