SOLVED

Re: Form Submits But Stuck On Page

Go to solution
debbie_917
Level 2

Form Submits But Stuck On Page

My form not submitting its stuck on please wait. But leads come in Marketo database so can you please look into my code what’s the causing.

 

Here is link for form. https://www5.cadence.com/orcad-student-license-request.html

 

stuck-error.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Form Submits But Stuck On Page

I was driving at the fact that the comment says “hide” but the code in fact calls .show().

SanfordWhiteman_0-1669096232449.png

 

View solution in original post

4 REPLIES 4
SanfordWhiteman
Level 10 - Community Moderator

Re: Form Submits But Stuck On Page

Hmm, what do you think this code is doing? 🙂 Particularly line 3!

form.onSuccess(function(values, followUpUrl) {
  //get the form's jQuery element and hide it
  form.getFormElem().show();
  document.getElementById('confirmform').style.visibility = 'visible';
  //return false to prevent the submission handler from taking the lead to the follow up url. 
  return false;
});

 

debbie_917
Level 2

Re: Form Submits But Stuck On Page

This code will show thank you message in popup on submit the form.

 

My  concern is only why submit say's Please wait! and disabled attributed prop on submit button.

SanfordWhiteman
Level 10 - Community Moderator

Re: Form Submits But Stuck On Page

I was driving at the fact that the comment says “hide” but the code in fact calls .show().

SanfordWhiteman_0-1669096232449.png

 

debbie_917
Level 2

Re: Form Submits But Stuck On Page

Thank you! This is very helpful.