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

inline call page


  1. sipherlucian
    Member

    hi im having an issue with my form, i have a small form previewing using colorbox on a webpage, when i use a text sucess message the colorbox window stays open that works fine, however i want it to redirect to a url, but when i redirect it the colorbox closes and goes to the page as an ordinary link, i think this has something to do with how the first page calls another, is there anyway i can have the form call on another page the way it does when it goes to the text sucess message???

    Posted 15 years ago #
  2. sipherlucian
    Member

    or if its possible to have a thank you for submitting message appear below the submit buttin when its clicked? that would be fine too.

    Posted 15 years ago #
  3. yuniar

    Can you let us know the URL to your form so we can try it and understand it better?

    If you don't want to post it here, you can mail to: customer.service [at] appnitro.com


    MachForm Founder

    Posted 15 years ago #
  4. sipherlucian
    Member

    hi thanks for the reply

    http://www.granitetops.ie/template_main01.html

    select the send us your design button to the right along the side, it will appear in colorbox, when you submit the form it will redirect to url, but colorbox closes. when i set the form to show a message instead it works fine the colorbox doesnt close it stays open, i wanna edit how that message page looks.

    Posted 15 years ago #
  5. redityo

    Hi,

    I see .. it's a kind of light box, since machform redirect success page option using "top.location" java script, that's why your box will be closed and redirect to top of the page.

    Anyway you can try to use "header" function instead, to do so you need to edit "embed.php" file, go to around line 45 and you will see this code :

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

    replace with this one

    if (trim($_GET['id']) == 64)
    	header("Location:{$submit_result['form_redirect']} ");
    else
    	echo "<script type=\"text/javascript\">self.location = '{$submit_result['form_redirect']}'</script>";

    In there I assume your form id = 64, don't forget to change the id with yours


    MachForm Support

    Posted 15 years ago #

RSS feed for this topic

Reply