Forums / Setup & design / how do i redirect after form submission?

how do i redirect after form submission?

Author Message

James Ward

Tuesday 18 May 2004 12:50:03 pm

3.3-4 (3.3 release 4) rev 5412

I am having some trouble redirecting after a form submission. I tried adding the following line to my standard/templates/content/collectedinfomail.tpl:

{set-block scope=root variable=redirect_to_node_id}2{/set-block}

the redirect didn't occur. Also tried adding that line to standard/templates/content/collectedinfomail/form.tpl and no go. Any help is appreciated.

working at www.wardnet.com
blogging at www.jamesward.ca

akiL Mussa

Wednesday 19 May 2004 4:17:57 am

try this:

<input type="hidden" name="RedirectURI" value={"content/view/full/2"|ezurl} />

Better explanation on this page:
http://ez.no/ez_publish/documentation/customization/tips_tricks/redirecting_after_content_publishing

James Ward

Wednesday 19 May 2004 7:26:13 am

Thanks for the quick response. My concern is that your solution will redirect everytime anything is submitted to the site. This is just a feedback forum which I would like to redirect to a Thank You infopage. Is there no way for me to just alter the behaviour of this form?

Thanks in advance.

working at www.wardnet.com
blogging at www.jamesward.ca