JS hook to listen to a remove-clone button press

Support MB Frontend Submission JS hook to listen to a remove-clone button press

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #44929
    Nicholas CoxNicholas Cox
    Participant

    Hi

    I am using clone groups for my front end forms, is there a way to listen to a 'remove-clone' button <a href="#" class="rwmb-button remove-clone"><span class="dashicons dashicons-dismiss"></span></a> and perform an action? I need to be able to identify which numbered clone is being removed so I can perform a database update via the fetch api.

    thanks

    Nick

    #44957
    PeterPeter
    Moderator

    Hello Nick,

    I checked the JS file /meta-box-group/group.js and don't see a specific hook that is triggered when clicking on the remove clone button. You can use the default action "click" with jQuery to run some code when this button is clicked.

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