Forums

Multi Page plugin and Submit URL

NickC4555 01 Jul, 2009
I have a Multi Page form and want to override the Submit URL of the final form. If I set the URL using the Submit URL property of the mother form, it overrides the action property of every form in the set, if I set it on the Submit URL property of the final form it is ignored.

I am using the form set to build an order. The final form is a summary with a PayPal button on it, so I want to go to the payment gateway when it is submitted.

Any suggestions please?
NickC4555 04 Jul, 2009
I decided to try to make some progress with this by abandoning the Multi Page plugin and chaining the forms together using the Submit URL property of each to link to the next. It works fine, but both client side and server side validation stop working as soon as I enter a Submit URL value.

Any help would be greatly appeciated, I have spent about a week building this form set and I'm thinking it might all have to go in the bin!
GreyHead 05 Jul, 2009
Hi Nickc4555,

Don't use the Submit URL to reditrect - if you do this ChronoForms never sees the results. Use the ReDirect URL instead and build your PayPal URL using the form info.

I'm not sure if it's in the latest release but there is a ReDirect Plugin that's designed to help you do just this.

Bob
NickC4555 11 Jul, 2009
Thanks for your reply. If I just change from using the submit to the redirect fields, it no longer sends any data to PayPal. I assume that's why you said I need to pass it in the URL instead, but I can't find any documentation about that. Could you give me a pointer, please?

I really like ChronoForms, but I've had to implement a several workarounds because using the submit url stops form procedures from working. I can't see why this would be the case, is there any way of changing this behaviour?
GreyHead 11 Jul, 2009
Hi NickC4555,

The OnSubmit URL sends the form results directly to that URL. ChronoForms never sees them and so can't do anything with them. It really is intended only for when you want to use a ChronoForms form as a front-end to some other app.

There are a couple of posts here on building a PayPal URL and re-directing to it (here's one but if you have the latest release there's now a ReDirect Plugin that makes it much simpler. On the General Configuration tab you can set up the 'variable' fields that you want to get from your form in the top boxes; and the 'static' parameters (that remain the same each time) in the lower box.

Bob
NickC4555 11 Jul, 2009
Thanks again for your support. Having read your links and some other posts, it seems other users would really just like to be able to specify the action url without disabling a form's functionality. Is that something on the product roadmap, because it's turning into a show stopper for me going forward with ChronoForms.
GreyHead 11 Jul, 2009
Hi NickC4555,

I have no idea how you expect that to work? I don't know any way of submitting a form to two places at the same time.

If you want to submit the form data and send the user to some other page than the ChronoForms one use the OnSubmit URL, ChronoForms will never see the data and will not be able to process it.

If you want to send the user to some other page after ChronoForms has processed the data then use the ReDirect URL.

If you want to send the data (but not the user) to some other form then use the CURL Plugin.

If you want to send the data and the user to some other page after the form is processed then use the ReDirect Plugin (or build a redirect url by hand in one of the OnSubmit boxes).

I suspect that I'm just not understanding the problem you are trying to solve here.

Bob
NickC4555 11 Jul, 2009
And I suspect I'm missing something too!

Start again. I have a form that I need to send emails and save to the database before submitting data to PayPal. I would like to use Post, not Get. If I use the Redirect URL, it doesn't send the data to PayPal, if I use the Submit URL it doesn't save or send emails.

I think the last option in your previous post might be the answer. I haven't tried that, I've only used the Redirect URL on the general tab.
NickC4555 11 Jul, 2009
Sorry, I can't find the Redirect plugin.
GreyHead 11 Jul, 2009
Hi NickC4555,

The ReDirect Plugin is only in the latest release but it's a modification of the CURL plugin so it should be Ok if you have one of the recent releases. Copy attached: unzip and copy the php file to the componentes/com_chronocontact/plugins folder.

However this will do a GET submission to PayPal not a POST, the URL is only visible transiently and GET submissions are very common so I don't know how much of a problem this will be for you.

The problem with POST is to take the user with the transfer, I guess that we could build a POST/Redirect by creating a form with the info in hidden fields and then auto-submitting it on page load.

Bob
NickC4555 11 Jul, 2009
I have upgraded to the lastest version of ChronoForms to get the Redirect plugin and now when I try to save any form I had previously created I get the error:

500 - An error has occurred.
Unable to load pathway: administrator

The new demo form saves without error. I have run the SQL upgrade.
GreyHead 11 Jul, 2009
Hi NickC4555,

Which Joomla version is this? I don't recall seeing this error here before. (There is a discussion in this thread on the Joomla Forums).

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