This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 3
Redirect after submission V3.4
Started 11 years ago by fmolstad | 5 posts |
-
Hello, I am trying to set up this in MachForms 3.4
http://www.appnitro.com/forums/topic/redirect-after-submission?replies=8
The code described in this thread was for Machforms 2.0 I think, as it does not do anything except break the forms in 3.4.
Can you post the same function code for 3.4 so I can redirect to a specific page for a specific form after a specified number of seconds after my Submission Conformation text is displayed?
Thanks
Forrest
ps- great job on the new version. Worth every penny.Posted 11 years ago # -
There are some major changes within v3 indeed.
Can you let me know the following please:1) Are you using single page or multi-page form?
2) Is "form review" enabled or not?The code would depend on those two.
MachForm Founder
Posted 11 years ago # -
Hello again yuniar.
1) I am not using a multi page form.
2) The form will not be enabled.
(is there a way to install code either way? I will be using this for many different forms and there may come a time that I will need to use the "form review" option.Thanks
Posted 11 years ago # -
Do you require any more information from me to solve this one?
Cheers
ForrestPosted 11 years ago # -
Sorry, I missed your previous post!
Ok, if you are using v3.4, you can edit your "includes/view-functions.php" file. Search around line 5686 for this code:<html {$embed_class} xmlns="http://www.w3.org/1999/xhtml">
right below that line, add this block of code:
{$custom_redirect_url}
Then go to line 5494, search for this:
global $mf_lang;
right below that line, add this code:
if ($form_id == 1) { $custom_redirect_url = '<meta http-equiv="Refresh" content="5;url=http://www.domain.com">'; }
that should work on all conditions (review enabled or not)
MachForm Founder
Posted 11 years ago #
Reply
You must log in to post.