Hack: Thank you page

Please post your suggestions or any hacks you have made here

Hack: Thank you page

Postby GreyHead on Mon Jun 04, 2007 4:55 pm

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
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3966
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Thank you page

Postby admin on Mon Jun 04, 2007 5:10 pm

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
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 4283
Joined: Mon Aug 14, 2006 5:29 am

Re:Thank you page

Postby GreyHead on Mon Jun 04, 2007 5:46 pm

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
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3966
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Thank you page

Postby admin on Mon Jun 04, 2007 11:03 pm

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
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 4283
Joined: Mon Aug 14, 2006 5:29 am

Re:Thank you page

Postby skytopdesigns on Tue Jul 17, 2007 3:10 am

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.
http://www.skytopdesigns.comgraphics and web designs
skytopdesigns
Senior Boarder
 
Posts: 60
Joined: Thu May 17, 2007 11:03 am


Return to ChronoForms Suggestions & Hacks

Who is online

Users browsing this forum: No registered users and 1 guest