FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple Thank you Pages
#4
Hi Fraser,

Sorry I totally missed your response.

Sure! Here's how it would work. First, just download and install the Submission Pre-Parser module:
http://modules.formtools.org/submission_pre_parser/

Then, inside the module, create a new rule that's assigned to your form. Make sure it's set to be triggered "on submission" (i.e. when the submission is first submitted).

Lastly, in the PHP aread

PHP Code:
if ($_POST["something"] == "value 1") {
  
$_POST["form_tools_redirect_url"] = "http://www.site1.com";
} else if (
$_POST["something"] == "value 2") {
  
$_POST["form_tools_redirect_url"] = "http://www.site2.com";
} else if (
$_POST["something"] == "value 3") {
  
$_POST["form_tools_redirect_url"] = "http://www.site3.com";


What that code does is look for a form field with a name attribute of "something", then if it has a particular value (value 1, value 2 or value 3), set the redirect URL to something different.

You'll need to change those values to whatever makes sense, but that's the idea!

- Ben
Reply


Messages In This Thread
Multiple Thank you Pages - by fraserkelly - Jul 8th, 2011, 5:17 AM
RE: Multiple Thank you Pages - by Ben - Jul 8th, 2011, 4:04 PM
RE: Multiple Thank you Pages - by fraserkelly - Jul 8th, 2011, 8:44 PM
RE: Multiple Thank you Pages - by Ben - Jul 29th, 2011, 9:11 AM
RE: Multiple Thank you Pages - by Pauletteaters - Sep 19th, 2021, 10:57 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)