• 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: Returning to Referral URL after submit

Returning to Referral URL after submit 12 years 7 months ago #19006

  • james.lee
  • james.lee's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 1
Hi,

How do I return to the referring page after the form has been submitted? Along with that I would like to open a new browser window to display other content.

Thx
The administrator has disabled public write access.

Re: Returning to Referral URL after submit 12 years 7 months ago #19007

  • james.lee
  • james.lee's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 1
Well I found the referral URL part of the problem... I can include that in a hidden field and pass that to the form's Return URL property.

//<code>
return $_SERVER;
//</code>
The administrator has disabled public write access.
The following user(s) said Thank You: xristo

Re: Returning to Referral URL after submit 12 years 6 months ago #19537

  • rsjoomla34
  • rsjoomla34's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 3
Are you able to explain a little further how this works? I'm having trouble getting this one functioning.

Got it.

Now I just need to figure out how to make it display the page they're actually on, rather than the page they were last on. The contact form is in a sidebar.
Last Edit: 12 years 6 months ago by rsjoomla34.
The administrator has disabled public write access.
The following user(s) said Thank You: xristo

Returning to Referral URL after submit 12 years 3 months ago #20971

  • aleks89
  • aleks89's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 2
there is a field "Return URL" in settings of form

I want to insert a back link, which would be consistent
$_SERVER['HTTP_REFERER']

to returning to Referral URL after submit ?

Is it possible to insert a piece of code in this field? or making action to return to refferal URL?
Last Edit: 12 years 3 months ago by aleks89. Reason: correcting
The administrator has disabled public write access.
The following user(s) said Thank You: xristo, tewebmaster

Returning to Referral URL after submit 11 years 2 months ago #26435

  • tewebmaster
  • tewebmaster's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 1
Yes you can. Create a hidden field in your form and put your code in the "Default value" section. Make sure to include the code tags and put the word 'return' (without quotes) in front of the code. Also be sure to add a semicolon (;) at the end of you above code.

Next go to the "Return URL" field and add the following:
{YourHiddenFieldName:value}

By the way, this will work properly even if you have a Thank You message!

alekx89, thank you for giving me the right code so that I could figure this out!
The administrator has disabled public write access.
The following user(s) said Thank You: xristo

Returning to Referral URL after submit 9 years 11 months ago #31323

  • xristo
  • xristo's Avatar
  • OFFLINE
  • Fresh Boarder
  • where all da white women at?
  • Posts: 8
My form is displayed within an iFrame so my Return URL loads within the iFrame. I've tried adding a target at the end of the URL but it doesn't appear to work.

Reading all of your posts I see there is a solution but I haven't been able to get it working. Please guide / correct me if my understanding of your steps is not correct or missing a piece.

1. Create a hidden filed in form (currently set as last field after submit) named whatever (for the sake of this example let's name it "urlredirectiframe". In this fields Default Value paste the following
//<code>
return $_SERVER;
//</code>


NOTE: I've left the Attributes area blank

2. In the forms Return URL place the following
{urlredirectiframe:value}

Done?
Where do you place the URL to be loaded in the main / parent window?
Last Edit: 9 years 11 months ago by xristo.
The administrator has disabled public write access.
  • 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!