Scroll to form after AJAX submission not working

Support MB Frontend Submission Scroll to form after AJAX submission not workingResolved

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #24572
    TGHPTGHP
    Participant

    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.

    #24576
    Long NguyenLong Nguyen
    Moderator

    Hi,

    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.

    #27560
    bucketpressbucketpress
    Participant

    +1 for this. Much needed for good user experience, for forms that appear after screen fold.

    #27589
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Please update the newest version of MB Frontend Submission 3.1.0 to fix this issue.

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