Getting an error when submitting the form

I’m doing a test submission on our website and get this error: “An error occurred when submitting the form, please try again.”

Any suggestions how to fix? Thank you!

2 Likes

UPDATE: It seems the error is being caused by the reCAPTCHA. When I disable that feature, the form works and submits properly. But I would like to enable this for SPAM protection. Any ideas?

Thanks!

2 Likes

Hi there, @Juanima_Hiatt :wave:

To fix the issue, we need temporary access to your website’s backend. Here is an article, explaining how you can do this - Providing access to your GoDaddy website - Elfsight Help Center.

I see that you’ve already had a chat with my colleague Daria regarding this issue. Please let Daria know once the access is shared. She’ll pass your request on to the devs and keep you updated in a support ticket :slightly_smiling_face:

1 Like

Thanks, @Max !

I’m using Hostinger, and can only grant backend access if they’re hosting the domain. The domain is currently in the process of moving over to Hostinger, and I’ve asked the current registrant to manually approve it. As soon as they do, I’ll come back and let you know! Hopefully it’s soon.

Thanks again!

2 Likes

Got it, thanks!

1 Like

Hi @Max - I too am experiencing this problem with my Hostinger Web Builder platform. Embedded the Captcha form widget code but getting the below error (see message just below the form) :confused:

Any updates on progress on this?

Many thanks :+1:

3 Likes

Hi there, @Ish_Bansal :wave:

The issue appears because the widget is installed in iframe. To fix it, please replace your current Installation code with the new one:

<script src="https://custom-scripts.elfsightcdn.com/public-scripts/hostinger-and-go-daddy/install-widget.js" data-banner></script>
<div class="elfsight-app-YOUR_WIDGET_ID"></div>

In the new code, please replace YOUR_WIDGET_ID with the ID of your widget.

Check it out and let me know if it worked :slightly_smiling_face:

2 Likes

Hi @Max - thank you for looking into this. I can confirm that the new code you’ve provided has now worked :partying_face:

Can you please clarify that if I need to build further forms, will I have to follow the same process? i.e. use the script you’ve provided in this post and replace the WIDGET_ID? Or will the code generated from the Form Builder App automatically generate the relevant script without me having to replace the code? I hope this makes sense? :thinking:

Since I was only using the free version to test the functionality, I will now go ahead and upgrade my subscription!

Thank you for your taking a look and helping on this matter :+1:

3 Likes

Great, you’re welcome :slightly_smiling_face:

If you’re going to install your forms on Hostinger, you should use the script I’ve shared and replace the WIDGET_ID.

This code installs the widget outside the iframe, making reCAPTCHA work correctly. However, if your website isn’t built in iframes (like Hostinger), the code generated in your dashboard should work great :slightly_smiling_face:

2 Likes

Hi There, I stumbled upon the same problem as highlighted here while using Hostinger. I’ve copied your code and implemented my widget ID and still running into issues related to errors while submitting. Any other thoughts?

1 Like

Hi there, @user32240 :waving_hand:

Could you please send me a link to the page, where your widget is installed? I’ll be happy to check it for you :slightly_smiling_face:

This is the link on my website: TEST Form | Of The World. I want to build a custom form and chose this just to play around to see that it works properly.

1 Like

Thanks!

I’ve tested your widget and everything worked fine on my end. I see that my test submission was delivered. Also, I’ve noticed you’ve sent a test submission about 5 minutes ago and it was also delivered:

image


Could you please double-check it and let me know if the issue still persists on your end?

Hi Max, Thanks. This form works well now. did you change something? If I decide to use a different form, like i had previously, will I also run into this issue?

1 Like

Hmm, we haven’t anything additionally and everything worked fine on our end right away!

This issue shouldn’t occur with other forms, but if anything goes wrong, please let us know. We’ll be happy to check things :slightly_smiling_face: