Custom Fields
Support MB Frontend Submission Scroll to form after AJAX submission not working

  • Creator
  • #24572

    When AJAX is on for the metabox, after successfully submitting the confirmation message shows correctly but then you get sent to the top of the page. That’s particularly jarring for a form that is in the footer for example.

    From what I can tell from the JS, after submission the form is removed (in displayMessage due to $form.replaceWith), but then is afterwards referenced as the element to scroll to (scrollTo($form)). As the form is gone at that point, the reference to the element jQuery had is gone, i.e. there’s now nothing to scroll to and you end up just scrolling to the top of the page.

Viewing 1 replies (of 1 total)
  • Author
  • #24576
    Long Nguyen


    Thank you for your reporting.

    Understand it. I’m going to add this case to the to-do list of the development team to improve the behavior of the ajax submit form.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.