Hello,
Please find the contactForm: function() Function Block in the js/functions.js File and replace the Entire Function Block with the following code:
contactForm: function(){
if( !$().validate ) {
console.log('contactForm: Form Validate not Defined.');
return true;
}
if( !$().ajaxSubmit ) {
console.log('contactForm: jQuery Form not Defined.');
return true;
}
var $contactForm = $('.contact-widget:not(.customjs)');
if( $contactForm.length ');
} else {
$(form).find('.form-process').fadeIn();
}
$(form).ajaxSubmit({
target: elementResult,
dataType: 'json',
resetForm: true,
success: function( data ) {
if( elementLoader == 'button' ) {
defButton.html( defButtonText );
} else {
$(form).find('.form-process').fadeOut();
}
if( data.alert != 'error' && elementRedirect ){
window.location.replace( elementRedirect );
return true;
}
if( elementAlert == 'inline' ) {
if( data.alert == 'error' ) {
var alertType = 'alert-danger';
} else {
var alertType = 'alert-success';
}
elementResult.addClass( 'alert ' + alertType ).html( data.message ).slideDown( 400 );
} else {
elementResult.attr( 'data-notify-type', data.alert ).attr( 'data-notify-msg', data.message ).html('');
SEMICOLON.widget.notifications( elementResult );
}
if( $(form).find('.g-recaptcha').children('div').length > 0 ) { grecaptcha.reset(); }
}
});
}
});
});
}
Now, simply add the data-redirect="http://your-website.com/thank-you.html" attribute to the .contact-widget Container. Example:
...
This should definitely work fine. Let us know if we can help you with anything else or if you find any further issues.