This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

Changing the url redirect's target


  1. pixel
    Member

    I have found on the forum answer regards to redirect page after submit , I use frames, I went to embed.php and line 44 to change the location, and it doesn't work , after submitting it removes the frames, and go to selected page, is there any other location in code to make this change.. ?

    Posted 16 years ago #
  2. yuniar

    Actually, you don't need to modify any file to change your redirect URL.

    From the admin panel, edit your form and click "Form Properties" tab.
    At the bottom right corner, you should see "Redirect URL" radio button.

    Simply select the radio button and put your URL there.


    MachForm Founder

    Posted 16 years ago #
  3. pixel
    Member

    I did that part, but this option resets my website page, it goes to correct page but my target frames are gone,

    I have set frames on my website the top part that is not moving contains my Logo, and menu choices on right side, and the middle part is the main target that scrolls up and down, once I go to Form to fill the info and press Submit button, it goes to correct page, but my top part and my right side are gone,
    currently I have remove the redirect option not to confuse customers..

    Posted 16 years ago #
  4. yuniar

    Try this, edit your embed.php, go to line 36.
    Search for this code:

    echo "<script type=\"text/javascript\">top.location = '{$submit_result['form_redirect']}'</script>";

    replace it with this one:

    echo "<script type=\"text/javascript\">parent.location = '{$submit_result['form_redirect']}'</script>";

    so instead of "top.location", you are using "parent.location" now.


    MachForm Founder

    Posted 16 years ago #

RSS feed for this topic

Reply