Choicing what form to fill with radio bnts

clovismmbr 21 Jul, 2009
Hello,
I have this scenario:
one form with two choices:
If i choice the 1st radio button then open/redirect the form1
If i choice the 2nd radio button then open/redirect the form2

How can I do this? please write some example

Thanks
Clovis
Max_admin 26 Jul, 2009
Hi Clovis,

in the onsubmit after email code box something like:


<?php
if(JRequest::getVar('check_1'))
$MyForm->formrow->redirecturl = '1st url here';
if(JRequest::getVar('check_2'))
$MyForm->formrow->redirecturl = '2nd url here';


Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
clovismmbr 12 Feb, 2014
Hi max, your solution works like a charm. Thank You

Now i Need another situation: How do I run an diferent event based in radio button?

Example If radio option 1 is selected run on submit event but if radio option 2 is selected i want to run another submit event where have another email, db save and others actions

Is that possible? to have differents submit events? I using CF v4 RC 3.0
GreyHead 13 Feb, 2014
Hi Clovis,

This is a very old thread and Max's solution was probably for CFv3. Please see this FAQ

Bob
clovismmbr 13 Feb, 2014
Hello Bob, I check the faq, downloaded the custom action. Thankyou.
But do you have a how-to use CFv4 Event Switcher [GH] action? an simple example for dummies?

Regards

Clovis
This topic is locked and no more replies can be posted.