Forms not redirecting upon submission | Community
Skip to main content
New Participant
February 27, 2023
Solved

Forms not redirecting upon submission

  • February 27, 2023
  • 1 reply
  • 3283 views
Does anyone know what could be causing this form to stay on the page upon submission rather than redirecting to our thank you page? Currently switching hosting platforms and trying to test forms on the new dev website A handful of forms are not redirecting Forms are working on other published websites WebOps manager suspects it's because dev website doesn't have an SSL certificate - could this cause the issue? Other forms ARE working on the dev site Form URL: http://procurifydev.wpengine.com/get-started/ Relevant Code: The page includes a Marketo form embedded in the hero section: html

Bring more spend under management today

By clicking "Get Started" you agree to
our Terms of use and Privacy Policy
The page is a standard WordPress template with Marketo form integration and Clearbit enrichment. The form loads properly but doesn't redirect after submission as expected.
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

Redirected just fine for me.

 

Redirecting from a plaintext site (non-SSL) to an SSL site — as is the case here — isn’t a problem. The other way around is blocked by browsers.


Still, it’s highly recommended that your dev site accurately mirror the security of your prod site!

 

P.S. You don’t need to do this:

Simply append the Email Address to the Thank You URL instead, seems unnecessarily fragile to expect them to type the same thing.

 

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
February 27, 2023

Redirected just fine for me.

 

Redirecting from a plaintext site (non-SSL) to an SSL site — as is the case here — isn’t a problem. The other way around is blocked by browsers.


Still, it’s highly recommended that your dev site accurately mirror the security of your prod site!

 

P.S. You don’t need to do this:

Simply append the Email Address to the Thank You URL instead, seems unnecessarily fragile to expect them to type the same thing.

 

Renee_McAuthor
New Participant
February 27, 2023

Hey Sanford,

 

Thanks for getting back to me so quickly! It's working for me in Safari and our staging site that has https but not the dev site in Chrome which is http. Either way, it doesn't seem like it's an issue with the form. We're working on getting the SSL cert up and running now.

 

Also, I appreciate the tip. That other form won't exist on the thank you LP anymore. We're going to send a link to the survey in a follow-up email instead. I agree, we don't want to ask them for info they've just provided. Would that solution still work if we're sending them to an LP via email?

 

Thanks!

SanfordWhiteman
New Participant
February 27, 2023

Think you’re mistaken about what’s happening in Chrome. It’s not that it’s not redirecting, it’s not submitting at all. That’s because there’s a bug in the Clearbit library which is leaving the form in a non-submittable state.

 


Would that solution still work if we're sending them to an LP via email?

Sure.

 

P.S. This code is very bad:

var pollForDefinition = function (scope, varname, callback) { if (typeof scope[varname] !== "undefined") { return callback(); } var interval = setInterval(function () { if (typeof scope[varname] !== "undefined") { clearInterval(interval); callback(); } }, 250); };

No need to do this kind of guesswork. Check my past blog posts and you’ll see how to wait correctly for MktoForms2 with no polling.