javascript - Avoid form redirection on 204 response in ios browsers -


i have created form in hubspot.

in ios devices iphone , ipad after successful post of form http 204 response, page redirected action url, in windows , android remains in same page.

is there way can avoid form redirection in iphone/ipad?

i had same issue, , found no info regarding how solve ios devices (any browser).

so i've inserted jquery scroll down when url parameters have string submissionguid - parameter present in hubspot form submissions.

  1. add id or class section display inline message. i.e. id="area_inline_msg"

  2. insert following code when page ready:


if (window.location.tostring().indexof("submissionguid") != -1) {     $("html, body").animate({         scrolltop: $("#area_inline_msg").offset().top + 3000     }, 1000); } 

note: i've added 3000 pixels window position scroll down little bit more.


Comments