Cloning form and event handlers

Support MB Frontend Submission Cloning form and event handlersResolved

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

    Hi

    I am looking to clone a front end form but from my understanding this only created a shallow copy of the form (no event handlers).

    const dcCommentFormClone = metaboxForm.cloneNode(true);

    I was wondering does metabox front end JS use event delegation to handle click events?

    Thanks

    Nick

    #36084
    Long NguyenLong Nguyen
    Moderator

    Hi Nick,

    Meta Box does not support cloning the frontend form of MB Frontend Submission. You can do something when cloning custom fields with the trigger events. Please read more here https://github.com/wpmetabox/meta-box/blob/master/js/clone.js#L122-L151

    #36086
    Nicholas CoxNicholas Cox
    Participant

    Hi Long,

    Ok thanks for clarifying. I can work around this with the custom fields trigger events.

    Thanks

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