Jun 29th, 2010, 1:18 PM
(This post was last modified: Jun 29th, 2010, 1:49 PM by michael.ka.)
A little update: I’m quite proud that I figured out how to solve my problem completely on my own, without any knowledge of PHP. Here is what works (for anyone who might want to solve a similar problem in the future):
You first need to install a module, the Submission Pre-Parser.
Create a new rule and select the form(s) where you want to work your redirect magic. All you need to do next is add one line of PHP code:
You first need to install a module, the Submission Pre-Parser.
Create a new rule and select the form(s) where you want to work your redirect magic. All you need to do next is add one line of PHP code:
PHP Code:
<?php
$_POST["form_tools_redirect_url"] = "http://redirect-url/";
You need to replace "http://redirect-url/" on the right side with the URL you want to redirect to. "http://google.com" would, for example, redirect to Google after the form was submitted.
What I did was add a hidden input field to my (localized) form with the (localized) redirect URL as the value, like so:
Code:
<input type="hidden" name="redirect" value="http://redirect-url/" />You again have to replace "http://redirect-url/" with the URL you want to redirect to.
To make this work you have to slightly change the PHP code of your Pre-Parser rule, like so:
PHP Code:
<?php
$_POST["form_tools_redirect_url"] = $_POST["redirect"];
