Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi,

    Can someone please check this code as it’s currently not working, the form just sends a confirmation email and doesn’t redirect.

    document.addEventListener( ‘wpcf7mailsent’, function( event ) {
    if ( ‘3683’ == event.detail.contactFormId ) {

    var Deposit = document.getElementById(“deposit”).value;

    if (Deposit == “Yes”) {
    location = ‘https://familymattersmediate.co.uk/deposit-payments/’;
    } else if (Deposit == “No”) {
    location = ‘https://familymattersmediate.co.uk/thank-you/’;
    }

    }
    }, false )

    The dropdown menu looks like this

    [select* menu-90 id:deposit include_blank “Yes” “No”]

    the form can be seen here –

    https://familymattersmediate.co.uk/referral-form-test/

Viewing 1 replies (of 1 total)