Hi,
Currently when the submit button is clicked you can either display a success message, or direct to a URL.
1.Is it possible after clicking the submit button, that the window closes automatically and NOT display or direct.?
Hi,
Currently when the submit button is clicked you can either display a success message, or direct to a URL.
1.Is it possible after clicking the submit button, that the window closes automatically and NOT display or direct.?
Are you sure you want to do this? Your user won't have any clue what has happened if you do so.
If you really sure, edit your embed.php and view.php file, around line 31 you will find this code:
if($submit_result['status'] === true){
Right under that line , insert this code:
echo "<script type=\"text/javascript\">top.window.opener = top;top.window.open('','_parent','');top.window.close();</script>";
exit;
That should close your window immediately.
However, the code above won't work in Firefox. Since I can't seem to find any javascript code to close Firefox tab.
Anybody know?
Thanks Yuniar,
I have a auto responder on the form that will serve as notification.
Ahh.. that make sense.
This topic has been closed to new replies.