Ajax Form Submission - auto scrolling to the top of the page

Support MB Frontend Submission Ajax Form Submission - auto scrolling to the top of the pageResolved

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

    Hi,

    I noticed when you submit a form on the front end using ajax that the form auto scrolls to the top of the browser window automatically. Is this the default behaviour? I ask as on mobile if the user fills in a form quite far down the page you can no longer see the validation message of the form without scrolling back down the page.

    e.g.
    [mb_frontend_form post_fields="title,content" ajax="true"]

    hope I'm making sense

    thanks

    Nick

    #38183
    Long NguyenLong Nguyen
    Moderator

    Hi Nick,

    I don't see that issue on my demo site. If the review form does not pass the validation, the browser will jump to the validation message.

    #38193
    Nicholas CoxNicholas Cox
    Participant

    Thanks for confirming this, I can see that metabox is not the issue now that i know about the validation error, I had the metabox form inside a popup which closes (css display:none) when the form is submitted, i did not realise when the validation message was hidden that this was causing the issue as metabox could not find the hidden conformation div.

    thanks

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