Show Thanks and Redirect User Not Working

arnold.pietersen 06 Jan, 2014
Hi

I have followed the steps as outline at: http://www.chronoengine.com/faqs/56-cfv4/cfv4-other-faqs/2694-how-can-i-show-a-thanks-message-then-redirect-the-user.html

to redirect a user within 5 seconds once the Thank You message has been shown. However I get the following error message above the Thank You page:

Warning: Invalid argument supplied for foreach() in /home/uufazteh/public_html/libraries/joomla/string/string.php on line 970

Since it is a Variable Redirection, I used the following code in the Params/Fields map textbox:

<?php
$doc =& JFactory::getDocument();
$doc->setMetaData('refresh', '5;url='.$form->data['redirect_url'].'', 'true');
?>

I left the Target texbox as is, which contained: http://

Any idea where I am going wrong
arnold.pietersen 06 Jan, 2014
OK, I added my domain name to the Target and the error message is gone.

However, it does not redirect in 5 seconds.

Any ideas?
GreyHead 07 Jan, 2014
Hi arnold.pietersen,

There's probably a JavaScript error on the page; please post a link to the form so I can take a quick look.

Bob
arnold.pietersen 07 Jan, 2014
Hi Greyhead

I settled for a form in a lightbox.

Thanks
This topic is locked and no more replies can be posted.