How to redirect user to another page if the user is logged in – WordPress Elementor Page Builder

Solution:

function my_logged_in_redirect() {
     
    if ( is_user_logged_in() && is_page( 12 ) ) 
    {
        wp_redirect( get_permalink( 32 ) );
        die;
    }
     
}
add_action( 'template_redirect', 'my_logged_in_redirect' );

You should get the ids of the page where the form is and the id of the page you want to redirect the user to.

Code goes in your child theme functions.php file

Reference: here