Form not submitting the second time | Community
Skip to main content
Level 2
August 27, 2024
Solved

Form not submitting the second time

  • August 27, 2024
  • 2 replies
  • 2075 views

Hi there, 

 

I am having issues with the form not submitting the second time. Here is a link to the live page - https://www.navex.com/en-us/navex-next/ 

The form opens up in the modal and the XDFrame has not been removed. I am also using Google recaptcha on the forms. 

Please let me know if you require any further details. 

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

The cause is the reCAPTCHA field (i.e. user fingerprint) not being attached on the 2nd and subsequent form submissions, as you can see in the response:

 

 

Right now, you are loading the form multiple times. Don’t do that: you must re-lightbox the form that’s already loaded.

2 replies

Ishita_Chawra
August 27, 2024

 Hi @mohitvaja22

Can you provide more details about what issue/notifications you're getting when resubmitting.

I tested (3) times and didn't get any visible error or notifications. 

Level 2
August 27, 2024

Hey I**bleep**a, 

 

So the steps to replicate the issue are:

 

- Visit this page https://www.navex.com/en-us/navex-next/

- click on save your spot button in the hero

- will load form

- click on close icon

- click on save your spot button in the hero again

- will load form again

- fill out the form

- form will throw an error. 

 

Thanks.

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
August 27, 2024

The cause is the reCAPTCHA field (i.e. user fingerprint) not being attached on the 2nd and subsequent form submissions, as you can see in the response:

 

 

Right now, you are loading the form multiple times. Don’t do that: you must re-lightbox the form that’s already loaded.

Level 2
August 28, 2024

Hey Sanford, 

 

Thank you for your reply, are you able to point me to any documentation or etc just so I can forward this to my developer? Thank you.

SanfordWhiteman
Level 10
August 29, 2024

Thank you for your reply, are you able to point me to any documentation or etc just so I can forward this to my developer? Thank you.

I think it should be clear to them if you say “don’t run MktoForms2.loadForm() more than once, reuse the existing form object.”