Hi all (Max)
I need to redirect users to different pages based on their response to one question. (radio button)
What's the best way to do that please? (sorry - i've searched for 1/2 hour😟 )
ie:
Do you like:
a. dogs
b. cats
thanks
Hi Rod,
use this in the onsubmit after email :
if(JRequest::getVar('radio_input_name') == 'dogs'){
$mainframe->redirect('www.dogs.com');
if(JRequest::getVar('radio_input_name') == 'cats'){
$mainframe->redirect('www.cats.com');
Regards
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Oh, sorry, I made a typo, here is the code :
if(JRequest::getVar('radio_input_name') == 'dogs'){
$mainframe->redirect('www.dogs.com');
}
if(JRequest::getVar('radio_input_name') == 'cats'){
$mainframe->redirect('www.cats.com');
}
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
I guess I'm having a brain dead week...
when i call a form using the plugin... it brings the form up but it won't forward at all😟
I'm getting a "You are not allowed to access this URL " error...
when I access the form directly - it works just fine.
(but I need it in an article..)
sorry Max... thoughts?
Hi Rod,
its the mambot issue because its outdated now for the new V3.0, I will post a new mambot at the downloads section in the next hours hopefully.
Regards
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?