Hi,
I wanted to have a 'thank-you' page using some of the form data to personalise it (e.g. Thank you John). I couldn't work out how to have this happen with a redirect url so hacked ChronoForms a little.
Not easy to show here as it has several parts but basically I added a {new-section} divider into the form html and then exploded $rows[0]->html into an array. $html[0] has the original form code and $html[1] has the thank you page code.
Bob
PS This could also be changed in the admin, but for me the front end hack was much simpler.<br><br>Post edited by: GreyHead, at: 2007/06/04 20:04
I wanted to have a 'thank-you' page using some of the form data to personalise it (e.g. Thank you John). I couldn't work out how to have this happen with a redirect url so hacked ChronoForms a little.
Not easy to show here as it has several parts but basically I added a {new-section} divider into the form html and then exploded $rows[0]->html into an array. $html[0] has the original form code and $html[1] has the thank you page code.
Bob
PS This could also be changed in the admin, but for me the front end hack was much simpler.<br><br>Post edited by: GreyHead, at: 2007/06/04 20:04
Hi Bob,
Simply add the URL to the thank you page in the redirect URL field OR use echo "whatever" in PHP tags in the onSubmit code🙂
Cheers
Max
Simply add the URL to the thank you page in the redirect URL field OR use echo "whatever" in PHP tags in the onSubmit code🙂
Cheers
Max
Hi Max,
Thanks, sounds silly, but I'm not yet sure how to create a stand-alone page in Joomla! (and I don't think that I'd be able to customise it without passing the data in the url??)
I can see that the OnSubmit code might work but how does it handle - for example - a Security Image verification error?
Bob
Thanks, sounds silly, but I'm not yet sure how to create a stand-alone page in Joomla! (and I don't think that I'd be able to customise it without passing the data in the url??)
I can see that the OnSubmit code might work but how does it handle - for example - a Security Image verification error?
Bob
Hi Bob,
you are right about the first one, but for the 2nd, when there is an error it will automatically tells an error occurred and get back!
Max
you are right about the first one, but for the 2nd, when there is an error it will automatically tells an error occurred and get back!
Max
what i do for a thank you page is make a static content page, then publish it to a menu, then go to the live page, copy the url from the bar, go back to the form, put that url in the redirect spot, go back and unpublish the static page from the menu and you will have your redirect.
This topic is locked and no more replies can be posted.