redirect page for contact form

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1217
    det_qt
    Member

    How can I make the form redirect to another page after successful submission instead of putting a success message on the page itself? please help. thanks

    #1228
    livemesh
    Keymaster

    Pls modify the js/main.js file at around line number 270 of the theme to handle page redirect on successful processing of input –

    $("#content .contact-form").validate({
            rules: rules,
            messages: messages,
            errorClass: 'form-error',
            submitHandler: function (theForm) {
                $.post(
                    theForm.action,
                    $(theForm).serialize(),
                    function (response) {
                        document.location.href='?page_id=163';
                        /*$("#content .feedback").html('
    ' + mo_theme.success_message + '
    ');*/ }); } });

    Thanks

    #1231
    det_qt
    Member

    resolved! thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Squash Theme Support’ is closed to new topics and replies.