This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
Pass Unique Query To Redirect URL
Started 10 years ago by aarenhofferth | 1 post |
-
I'm trying to pass a unique query to the redirect url of a form. I thought I could do this by defining a variable in the display template which is passed to post-functions.php, however, it doesn't work.
<?php
$couponTitle = "test"; // Added This
require("/site.com/web/content/form/machform.php");
$mf_param['form_id'] = 1;
$mf_param['base_path'] = 'http://www.site.com/form/';
display_machform($mf_param);
?>This is what was added to post-functions.php around line 915:
if($couponTitle != "") {
$process_result['form_redirect'] = $form_redirect . "?coupon=" . $couponTitle;
} else {
$process_result['form_redirect'] = $form_redirect;
}This is basically so that I can use one form which sends the user to different redirects depending on which page they filled the form out on.
Thanks!
Posted 10 years ago #
Reply
You must log in to post.