Thank you page

3 replies · opened Dec 14, 2023

CcomunicandotiDec 14, 2023

Hi, I would like to add redirection to the than you page named "thanks-for-contacting-us.php", but it doesn't work. Could you help me? Thank you

SSemicolon WebSTAFFDec 14, 2023

Hello,

There are certain errors on the Page that might be causing this issue. Make sure that you move the Custom JS/jQuery Codes after the js/functions.js JS File Linking. And also change $ to jQuery instead.

Additionally, you will also need to add the data-redirect="https://your-website.com/thank-you.html" Attribute to the .form-widget Element to redirect the Page after Successful Form Submission. Example:
[ch_pre]<div class="form-widget" data-redirect="https://your-website.com/thank-you.html">[/ch_pre]

This will display the Success Alert first and then redirect the Page. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

CcomunicandotiDec 18, 2023

Hello,

Thank you for your reply. I appreciate your prompt assistance. Unfortunately, it seems that the issue persists, and the Thank You Page is not functioning for both the free consultation form and the general contact form.

I have followed the provided suggestions, including correcting the jQuery syntax and ensuring that jQuery is correctly imported. Despite these efforts, the redirection to the Thank You Page is still not working as expected.

Could you please review the code and provide further guidance on resolving this matter?

Thank you again for your support.

Best regards

Thank you page: https://comunicandoti.com/grazie-per-averci-contattato.php
Contact form: https://comunicandoti.com/contatti.php
Free consultation: https://comunicandoti.com/contatti.php

SSemicolon WebSTAFFDec 19, 2023

Hello,

The Codes used are still incorrect:

  1. Currently you are using:
    [ch_pre]<!-- JavaScripts
    ============================================= -->
    <script src="js/jquery.js"></script>
    <script src="js/functions.js"></script>
    <script src="js/plugins.min.js"></script>
    <script src="js/functions.bundle.js"></script>[/ch_pre]

The Correct Codes are:
[ch_pre]<!-- JavaScripts
============================================= -->
<script src="js/plugins.min.js"></script>
<script src="js/functions.bundle.js"></script>[/ch_pre]

  1. You are using two .form-widget Elements on the Page which is incorrect in your case. You will need to find the existing .form-widget Element which already has your Form Codes and simply add the data-redirect="https://your-website.com/thank-you.html" Attribute to it.

  2. Additionally, the jQuery Codes are still added before the jQuery is actually available on the Page which results in an error.

Since, currently Customization related Support is not included with the License according to the Item Support Policy: https://themeforest.net/page/item_support_policy . You will need to manually code this or Hire Us to help you out with Customizations.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard