Support » Plugin: Form Maker by WD - user-friendly drag & drop Form Builder plugin » Redirect to different pages based on form input

Viewing 1 replies (of 1 total)
  • wzshop

    (@wzshop)

    Ok this is what i did: In form-maker\frontend\models\FMModelForm_maker.php

    Go to line: 7613 and find if (!$str) {.
    Here I changed it in the following code to get a custom redirect based on the option selected from a dropdown menu:

    if (!$str) {
    //Custom redirect script
    if($_POST['select name'] == 'Value option selected'){
    $redirect_url = 'http://domain.com/url-1.htm';
    }
    else{
    	$redirect_url = 'http://domain.com/url-2.htm';
    }
    
          wp_redirect($redirect_url);
    
          exit;
    
        }

    No idea if this is neat, but it is working:) Suggestions are welcome.

Viewing 1 replies (of 1 total)
  • The topic ‘Redirect to different pages based on form input’ is closed to new replies.