LeoLopesWeb
1/18/2019 - 5:34 PM

Request for Multiple External ReDirects - Contact Form 7 Redirection

inputs = event.detail.inputs;
inputs.forEach( function(el) {
    if ( el.name == 'doacao ' ) {
    	if ( el.value == 'Única' ) {
    		location.href = 'http://yoursite.com/';
    	} else if ( el.value == 'Recorrente' ) {
    		location.href = 'http://yoursite.com/about/';
    	}
    }
});

[select* doacao include_blank "Única" "Recorrente"]