Hi,
Having an problem trying to use the ReDirect URL, On Submit event.
I am basically trying to use a drop down box value to redirect a user to the related Joomla article.
In the Drop down box I have configured a couple of options like this (with the number reflecting the article ID):
27=Sydney
29=New York
Then in the redirect URL parameters box I am putting something like this:
Target URL
http://www.mywebsite.com/index.php
parameters
option=com_content&view=article&id=27={input_select_0}
However when using the form I then get redirected to the URL:
index.php?option=com_content%26view%3Darticle%26id%3D27%3D%7Binput_select_0%7D
I assume this is because of the additional Ampersands and equals signs, so I tried escaping them correctly but this didn't work. I tried adding more of the URL to the drop down box value but that causes problems too.
I also have SEF URLs turned on and tried using these as values, but this will not work due to the added ?= before the value which causes the URL to obviously be wrong.
So is there something wrong with the values I'm using in the form or am I just trying to achieve this in the wrong way. Should I be creating a PHP script to do the work and use the redirect to point to the script, r can this all be done from within chronoforms.
Many Thanks
Having an problem trying to use the ReDirect URL, On Submit event.
I am basically trying to use a drop down box value to redirect a user to the related Joomla article.
In the Drop down box I have configured a couple of options like this (with the number reflecting the article ID):
27=Sydney
29=New York
Then in the redirect URL parameters box I am putting something like this:
Target URL
http://www.mywebsite.com/index.php
parameters
option=com_content&view=article&id=27={input_select_0}
However when using the form I then get redirected to the URL:
index.php?option=com_content%26view%3Darticle%26id%3D27%3D%7Binput_select_0%7D
I assume this is because of the additional Ampersands and equals signs, so I tried escaping them correctly but this didn't work. I tried adding more of the URL to the drop down box value but that causes problems too.
I also have SEF URLs turned on and tried using these as values, but this will not work due to the added ?= before the value which causes the URL to obviously be wrong.
So is there something wrong with the values I'm using in the form or am I just trying to achieve this in the wrong way. Should I be creating a PHP script to do the work and use the redirect to point to the script, r can this all be done from within chronoforms.
Many Thanks