• Resolved delfidream

    (@delfidream)


    Hi! Is there a way, even by code, to allow to setup a thank you page? This could either be by selecting a page to redirect to from pages list, or any url. I need to provide the user some information after registering and I need to display some text with an image. It could also be a popup with a message or a box that appears below the form. Thanks!

    • This topic was modified 7 years, 2 months ago by delfidream.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author roundupwp

    (@roundupwp)

    Hey delfidream,

    This has been requested a few times so it might be added as an option at some point.

    In the mean time, you can add some code to the rtec-scripts.js file to redirect the user after they submit a form. Here are the steps:

    Open up the rtec-scripts.js file by going to Plugins->editor and then selecting “Registrations for the Events Calendar”. You can then find the rtec-scripts.js file on the right hand side.

    Add the following to line 280:

    window.location = "https://roundupwp.com";

    You would want to change the “https://roundupwp.com” part to your own page.

    Here is the code added in context:

            } else {
                $rtecEl.prepend('<p class="rtec-success-message tribe-events-notices" aria-live="polite">'+$('#rtec').attr('data-rtec-success-message')+'</p>');
            }
            window.location = "https://roundupwp.com";
        }
    }); // ajax

    Hopefully that helps! Let me know if you need more help.

    – Craig

    Thread Starter delfidream

    (@delfidream)

    Thanks so much for your answer! This will help, but I dont want to edit the file in worpdress admin, but directly the file. I dont really know how to override a plugins file (like I would do with a child theme). Is there a way I can override this funtion and add that line? or use a “hook”? Sorry if Im making nonsense, Im a designer, not really a programmer. Regards.

    Plugin Author roundupwp

    (@roundupwp)

    No problem!

    Also, your concern makes sense. Thinking about this more, you could instead add the following to the “Custom JavaScript” area on the “Form” tab in the plugin’s setting pages:

    jQuery('.rtec .rtec-submit-button').click(function() {
      setTimeout(function() {
        if (!jQuery('.rtec-error').length) {
            window.location = "https://roundupwp.com";
        }
      },500)
    });

    This just listens for a “click” of the submit button and then redirects the visitor if there aren’t any errors in the form. The form will continue to submit in the background.

    It should work just fine for you and you won’t need to edit any files.

    Let me know if you have more questions!

    – Craig

    Thread Starter delfidream

    (@delfidream)

    Thanks so much. It’s refreshing to find this level of support. I hope you the best and would recommend your plugins witouth hesitation.
    I managed to do it with the jquery method, but instead of a window location Im launching a popup maker popup and it works perfectly.
    Thanks!

    Plugin Author roundupwp

    (@roundupwp)

    Hey again,

    No problem! Glad we were able to figure out something that will work. No obligation or anything but we always appreciate reviews if you felt like leaving one.

    Let me know if you need anything else!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Thank you page’ is closed to new replies.