Using the Forward module in a popup window (Lightbox 2); when I submit the post, the page I *was* on will appear in the popup window. Instead of this, I want to show a different node - a thank you page asking them to close the window to continue. (A modal dialog box doesn't work - we've tried).
The override I'm trying to use (in template.php) is as follows;
function phptemplate_form_forward_alter(&$form, &$form_state) {
$form['#redirect'] = 'node/337';
/* After the form is submitted, redirect the user to an innocuous page.*/
}
Node 337 is the 'Thank you' window, but non of this code seems to run. I tried to put it in a module as well, but no difference (apart from the prefix of the function name)
I'm sure it's a schoolboy error - but where?
Regards,
Pete.
Comments
Hi Pete - how did you end up
Hi Pete - how did you end up solving this? We've got the exact same issue.
Thanks!
Write your own js_submit
Hi,
I wrote my own js submit instated
forward_js_submit()Eg: