Support » Plugin: Contact Form 7 » Load new page on valid input

  • David


    I am using contact form 7 as a form entry before loading another hidden page to view a pdf. Im using the code below to get it to jump to the page when the button is submitted.

    document.addEventListener( ‘wpcf7submit’, function( event ) {
    if ( ‘184’ == event.detail.contactFormId ) {
    location = ‘’;}}, false );

    However even if non of the fields are completed and then the submit button is clicked it still loads the download page, how can I stop this?

    Kind regards


  • The topic ‘Load new page on valid input’ is closed to new replies.