Print success message on form page rather than redirect
Posted: 05 June 2008 04:32 AM   [ Ignore ]
Newbie
Rank
Total Posts:  8
Joined  2008-06-04

Hi there

We are using freeform to submit job adverts from a 3rd party feed to our site. The feed system does not seem to like the redirect to a success page.

Is there any way to print a success message on the form page on submission (perhaps using php) rather than redirecting to a URL?

Many thanks

Mike Johnson
Fusion Design

Profile
 
 
Posted: 05 June 2008 08:04 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3344
Joined  2006-10-18

Mike,

How is the feed set up? Are you referring to an RSS feed, etc? I’m not quite sure I understand the process here… I’m not sure how Freeform fits in the picture here…

Thank you smile

 Signature 
Profile
 
 
Posted: 05 June 2008 08:26 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  8
Joined  2008-06-04

Hi Pie Man

Sorry, bit scarce on the detail with my question - hope this helps;

It’s a series of value pairs posted via http to the form page here.

entries are displayed here

everything is working great, however the feed providers would like an acknowledgment that the job has posted successfully. The redirect method using the freeform tag is fine for manual submissions, but their system is having problems going to the redirect page to view the success message.

I wondered if it’s possible to return a php echo message or similar within the page upon a successful submission of the form - rather than a redirect to url?

Many thanks

Mike

Profile
 
 
Posted: 05 June 2008 08:38 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3344
Joined  2006-10-18
fatherjack - 05 June 2008 08:26 AM

everything is working great, however the feed providers would like an acknowledgment that the job has posted successfully. The redirect method using the freeform tag is fine for manual submissions, but their system is having problems going to the redirect page to view the success message.

Ok, starting to make sense now smile

So they’re using some sort of application or web application to submit to your website’s Freeform Form?

 Signature 
Profile
 
 
Posted: 05 June 2008 11:20 PM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  8
Joined  2008-06-04

Yes, thats’s how it is working.

I was wondering if we can change the redirect code on successful submission to print a confirmation message to the form page.

regards

Mike

Profile
 
 
Posted: 06 June 2008 06:53 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3344
Joined  2006-10-18

I see....

Unfortunately I’m not too familiar with PHP, so I will not be able to help you in this manner…

 Signature 
Profile
 
 
Posted: 09 June 2008 05:19 AM   [ Ignore ]   [ # 6 ]
Newbie
Rank
Total Posts:  8
Joined  2008-06-04

Hi Pie Man

I’m sorry, I’m not asking you to provide a ready made solution, I’m asking if it’s possible for us to alter the code that validates the form and then gives the redirect url on success

Would you be able to point me to where the validation code and redirect code is?

Many thanks

Mike

Profile
 
 
Posted: 09 June 2008 07:54 AM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3344
Joined  2006-10-18

I’ll see if I can get Mitchell here to point you in the right direction LOL

 Signature 
Profile
 
 
Posted: 09 June 2008 08:00 AM   [ Ignore ]   [ # 8 ]
Newbie
Rank
Total Posts:  8
Joined  2008-06-04

That would be great

Many many thanks

Mike

Profile
 
 
Posted: 09 June 2008 09:26 AM   [ Ignore ]   [ # 9 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

Fatherjack,

I think you want to hack the Freeform module so that it submits the form via AJAX then loads the response back into a div on the page. We would offer to help with the customization, but the schedule is full right now.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 09 June 2008 09:35 AM   [ Ignore ]   [ # 10 ]
Newbie
Rank
Total Posts:  8
Joined  2008-06-04

Thanks Mitchell

It’s a good idea, we will give that method a go.

Regards

Mike

Profile
 
 
Posted: 17 June 2008 07:57 AM   [ Ignore ]   [ # 11 ]
Newbie
Rank
Total Posts:  8
Joined  2008-06-04

Hello

I’m trying to find how to implement the extension; freeform_module_insert_end
(This extension hook is called immediately before users are redirected upon a successful form submission.)

Basically we are trying to use this to print a success message to the form page before redirection.

Can you point me at which files I need to edit?

Many thanks

Mike

Profile
 
 
Posted: 25 June 2008 02:52 AM   [ Ignore ]   [ # 12 ]
Newbie
Rank
Total Posts:  8
Joined  2008-06-04

I’ve found the answer in this thread

http://www.solspace.com/forums/viewthread/876/

and it is obvious - doh!

Profile
 
 
Posted: 25 June 2008 07:10 AM   [ Ignore ]   [ # 13 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3344
Joined  2006-10-18

Oh that method actually worked? smile

 Signature 
Profile