Forums

Redirect URL after submitting a form.

cjschrattenthaler 23 Aug, 2011
Hi!

I used the wizard to create a simple form. After submitting the form, I want to send the user to a spcial URL (in my Joomla!).

In the old version 3.x there was an option 'redirect URL' that worked fine for me. In the new version 4.x I can't find such an option, and the old forms doen'st work with the new version...

Can anyone help me, please?

Thanks,
Christian.
GreyHead 23 Aug, 2011
Hi Christian,

In ChronoForms v4 you can drag a Redirect User action into the On Submit event. (There's also a ReDirect URL action if you want to create a custom URL using the form data.)

Bob
cjschrattenthaler 23 Aug, 2011
Hi!

I found it:

1. I had to change to 'Edit in Advanced Mode'

2. I had to add 'ReDirect User' from Elements-Core Actions to the end of Events->On Submit, and config them.

3. I had to delete the 'Show Thanks Message' from Events->On Submit.

Now it works!

Thanks,
Christian.
Chanetsa 27 Sep, 2011
Hi

I have followed all the avice here and cannot get my form to redirect to a specified page after the form is submitted successfully.

Also, every time I make changes to the form in the back end, all my display formatting is lost. I am finding this very frustrating and time consuming.

Can someone tell me what I am doing wrong please?

1. Created for in easy mode.
2. Published and tested form - all works fine.
3. Reformatted form display using Dreamweaver. All still OK.
4. Decided I needed to redirect the user to a thank you page after form submit.
Selected the form and Wizard Edit link.
5. Select Actions Tab and drag the Redirect User to On Submit/On Success event.
6. Edited redirect URL settings by adding my destination url http://muydomain.com/thanks.html
7. Saved form and retested

Does not work. Am redirected to the same page the form was on minus the form itself.

Thanks, Chanetsa
GreyHead 27 Sep, 2011
Hi Chanetsa ,

Please drag the Redirect User action into the On Submit event itself (not into the On Success event of some other action). It needs to be the last action in the event.

Bob
Chanetsa 27 Sep, 2011
Hi GreyHead

Thank you for replying so quickly. Your solution worked. Much appreciated.

Is there a way to preserve front-end design whilst editing forms?

Chanetsa
GreyHead 27 Sep, 2011
Hi Chanetsa,

What is the problem with the front-end design?

Bob
Chanetsa 27 Sep, 2011
Sorry, I should have been more clear.

I have changed the code (by clicking on the form name link and changing contents of code). The layout then works out better for me on the web site.

When I change items in the wizard, the changes in the code are lost. I get around this by saving them as html files and reloading them. I have to do this many times during testing and iterative refinement of the form. Is there an easy way to persist my code changes or is that undesireable?

Thanks, Chanetsa
GreyHead 27 Sep, 2011
Hi Chanetsa,

If you edit the form HTML then you should switch to Custom mode in the drop-down on the code page. This will block the preview tab so that you can no longer drag and drop new form elements.

You can then edit the Form HTML in the textarea or in your preferred HTML editor. To add new elements you can copy and paste them in the editor (making sure to change the names and ids).

You can also create a new temporary form with the Wizard, add the elements that you need with the Wizard and copy and past the resulting HTML into your existing form.

If only a few elements need to be customised you can continue to use the Wizard but copy and paste the HTML for some elements into Custom elements. You can edit the HTML in these while leaving the other elements in the Wizard format.

With any of these methods you can build your own CSS file to style the form to suit your site.

Bob
warrickvdh 17 Oct, 2011
I am desperately trying to post a form using redirect URL or cURL?
I need the form to send both the user and the data to a credit card service. At the same time I want an email sent.
I think I'm supposed to use redirect URL for this
Target
https://www.vcs.co.za/vvonline/ccform.asp
Params/Fields map
p1=p1
p2=p2
p3=p3
p4=4
p8=p8
p11=p11


When I submit it does not redirect instead it stays on the same page but the form disappears.

Please help!
TIA
hoblikus 06 Dec, 2011
I have same problem. When I use Redirect User everything is O.K, but when I use Redirect URL (because I need to send some parameters) redirection does not work. Do you know where is problem ?
GreyHead 07 Dec, 2011
Hi hoblikus ,

If you use the ReDirect URL action then you need to follow it with a ReDirect User action - both are required.

Bob
elijahweb 29 Aug, 2012
I love your work....but I am slightly confused....I am needing upon form submission the user to be redirected to a page within my site that has a paypal button. I used the form to gather more info first.. I have used redirect url and user and both and user last and removed the thanks response as well...

but I am being sent to the wrong page...
the address is <!-- w --><a class="postlink" href="http://www.osceolagenerations-dot-org">www.osceolagenerations-dot-org</a><!-- w -->

You can see in the menu Donate... and under it in the dropdown... Donate Paypal... The paypal page is were I need the user to end up so they can click the paypal button on that page...

thanks... and I 'll keep trying...
elijahweb 29 Aug, 2012
Sorry... it was me... duh... I needed to empty the Holy cache... again.... thanks!
This topic is locked and no more replies can be posted.