Jan 29th, 2014, 8:51 AM
Hi Gary,
Thanks for sending along your login credentials. We took a closer look through the code and found the issue. The Form Builder works by starting with a blank submission in the database, then as the user steps from page to page, it updates the DB record. So the Submission Pre-Parser rule needs to be set to be trigger "on edit", not the other (way more intuitive) "On submission" / "On submission (API)" since there is already an existing record.
Also, it doesn't appear that the form_tools_ignore_submission key works for this particular form. We can't narrow down the particular issue.
So instead, you can just change the rule to this:
if (isset($_POST["htest"]) && $_POST["htest"] != "16") {
header("location: http://www.google.com");
exit;
}
And you'll need to specify whatever redirect URL you want and that will automatically redirect bots to a different location.
For the other requests please be aware that the pre-parser rules will fire every time the user goes from one page to the other. Accordingly, checking that $_POST has the desired key in it is paramount, otherwise it will fire all the time. Checking for the existence of a key will ensure it only fires on a single page.
Cheers,
Joe
Thanks for sending along your login credentials. We took a closer look through the code and found the issue. The Form Builder works by starting with a blank submission in the database, then as the user steps from page to page, it updates the DB record. So the Submission Pre-Parser rule needs to be set to be trigger "on edit", not the other (way more intuitive) "On submission" / "On submission (API)" since there is already an existing record.
Also, it doesn't appear that the form_tools_ignore_submission key works for this particular form. We can't narrow down the particular issue.
So instead, you can just change the rule to this:
if (isset($_POST["htest"]) && $_POST["htest"] != "16") {
header("location: http://www.google.com");
exit;
}
And you'll need to specify whatever redirect URL you want and that will automatically redirect bots to a different location.
For the other requests please be aware that the pre-parser rules will fire every time the user goes from one page to the other. Accordingly, checking that $_POST has the desired key in it is paramount, otherwise it will fire all the time. Checking for the existence of a key will ensure it only fires on a single page.
Cheers,
Joe