• 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: Custom return_url

Custom return_url 16 years 11 months ago #118

  • alex
  • alex's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 443
  • Thank you received: 3
Make the return_url customizable by adding the {} field replacer to it.
The administrator has disabled public write access.

Re:Custom return_url 16 years 11 months ago #146

  • alex
  • alex's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 443
  • Thank you received: 3
Fixed on 1.0.2beta
The administrator has disabled public write access.

Re:Custom return_url 16 years 11 months ago #169

  • Jilic
  • Jilic's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 33
:cheer: :cheer: :cheer:

Really???!!!

Wow, that's mega cool. Can I give you more karma points then once ;) :P :laugh:

(edit)
so eager to try it i forgot the most important thing...

THANKS !!! Thank you...
Going to test it right away. (gonna be an all nighter again.. hihih)<br><br>Post edited by: Jilic, at: 2007/05/10 23:47
The administrator has disabled public write access.

Re:Custom return_url 16 years 11 months ago #206

  • Jilic
  • Jilic's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 33
wheheheh.... quick question...

where do I enter it...

The fieldID that uses the radio buttons are called jup.

do I enter at return URL: domain.com/{jup}.html ? because that didn't work... :laugh: ;)

Thanks.


(custom email adres & the rest works good. (didn't try the backup yet.)
The administrator has disabled public write access.

Re:Custom return_url 16 years 11 months ago #225

  • alex
  • alex's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 443
  • Thank you received: 3
Hm that is strange. Yes, the return url should look like

domain.com/{jup}.html

But keep in mind, your Radio fields jup must have the default value set to the page name you want to access. SO the first jup will have default value page1 and the second page2. If that does not work, please backup your forms, and send the backup file to me.
The administrator has disabled public write access.

Re:Custom return_url 16 years 11 months ago #242

  • Jilic
  • Jilic's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 33
Problem there is... Default Value is used in the email. \"You choise {jup}\".
value= The first option
value= the second option

so what I did was make 2 files. The first option.html and The second option.html, which redirects to the correct joomla URL-string.

Could it be, because I use spaces in the default value?

In this case, the good looking email with the information is more important then the redirect. (return_url)


BTW: thinking, couldn't you post the end part of the url-string in default value. ((if default value wasn't used in an email. :cheer: ;) :P :silly: ))

So default value's like:
index.php?option=com_content&task=blogsection&id=1&Itemid=27
index.php?option=com_wrapper&Itemid=8
or
index.php?option=com_contact&Itemid=3

'cause in joomla I don't / it doesn't use domain.com/page.html

J.
The administrator has disabled public write access.

Re:Custom return_url 16 years 11 months ago #275

  • alex
  • alex's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 443
  • Thank you received: 3
Do this:

Ad a hidden field to your form. Call it return. Then add the following code to your jup radios Additional attributes

on jup1 add: onclick=document.getElementById('return').value='page1';
on jup2 add: onclick=document.getElementById('return').value='page1';

Then in the return_url field add {return} (the name of the hidden variable. This should work i guess. So basically what happens is:

When a user clicks the first radio, javascript will give to the hidden variable return, the value page1.

For the second request,i did not understood why don't you use your absolute path like domain.com/{return}.html ? what is the problem in using that?
The administrator has disabled public write access.

Re:Custom return_url 16 years 11 months ago #284

  • Jilic
  • Jilic's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 33
I was just thinking....

onclick=document.getElementById('return').value='page1';

if I replace the value='page1'
with: value='index.php?option=com_forme&Itemid=35'

and as return URL put in: domain.com/{return}
That it should go to the right page as well..
or am I thinking too easy again...

When I added the onclick, the checked option didn't work anymore, maybe I did something wrong. Thought it maybe had problems with the script so deleted the checked part, but it didn't help.


I made a back-up, maybe you can see what I did wrong.

Thanks
Greets
J.

Attachment forme_backup.txt not found



Back again...

I rather edit my last post then post another one....
**

Tried a few things now. none work... it keeps on giving bla.com/{jup} or bla.com/{return} (with or without .html behind it, neither work :( )

and don't know if you have any use of the back-up I made. it's pretty empty.

J. Again.<br><br>Post edited by: Jilic, at: 2007/05/12 13:30
Attachments:
The administrator has disabled public write access.

Re:Custom return_url 16 years 11 months ago #316

  • alex
  • alex's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 443
  • Thank you received: 3
It seems like your forme_backup does not have any information about your forms. Are you able to backup the four #__forme tables in your database?
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!