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

  • Creator
    Topic
  • #24572
    Resolved TGHP
    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #24576
    Long 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
    bucketpress
    Participant

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

    #27589
    Long Nguyen
    Moderator

    Hi,

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

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