appointment redirection to custom page


how can i achieve to redirect to the custom "thank you" page after validation of form?
without JS alert box.

thank you!

  • Patrick

    Hi there @peter

    Welcome to the forums, glad to have you aboard!

    If you are requiring payment for appointments, you can select the page you want to use as your Thank-You page in the Payment Settings section (screenshot).

    If payment is not required for appointments, you need to add a function to your active theme's functions.php file to redirect to a custom Thank-You page. This is the function:

    function app_redirect( $script ){
        return str_replace("window.location.href=app_location()", "window.location.href=''", $script);
    add_filter( 'app_footer_scripts', 'app_redirect' );

    Change in the code to the URL of the actual page you want to use.

    I hope this helps! And thanks for being a member :slight_smile:

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.