• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Is this possible? Previous Page redirect

Is this possible? Previous Page redirect 11 years 3 months ago #26421

  • tewebmaster
  • tewebmaster's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 1
After submitting (or pressing a cancel button) I would like the user to be redirected to the URL that brought them to the form. The forms that I'm using are on hidden pages (menu items) which are gotten to by links. I want to be able send them back where they came from.

Is this possible? If so, any suggestions on how I do this?
The administrator has disabled public write access.

Is this possible? Previous Page redirect 11 years 1 week ago #27390

  • acopsy
  • acopsy's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Any news on this?
Would also like to do something similar.
Thanx Alex
The administrator has disabled public write access.

Is this possible? Previous Page redirect 10 years 11 months ago #27654

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
A solution to your issue it would be to create a hidden field and in the default value insert the following code:

//<code>
if(isset($_POST['form']['hidden_field_name']))
return $_POST['form']['hidden_field_name'];
else return $_SERVER['HTTP_REFERER'];
//</code>

This code will grab the previous URL visited and store it in that field. Next step is to go to form properties and change the return URL to {hidden_field_name:value} .
My help is not official customer support. To receive your support, submit a ticket by clicking here
The administrator has disabled public write access.
The following user(s) said Thank You: info1157
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!