radio botton with optional text field

Huonker 14 Oct, 2011
Hello
unfortunatelly I m not very skillful with programming. So i wanted to ask how do I have to proceed when I want a radio button which shows depending on "yes" or "no" a further text field/drop down menu or not.
Thank you

Regards
GreyHead 15 Oct, 2011
Hi Huonker,

You will need to use JavaScript to do the hiding/unhiding for you.

Which version of ChronoForms are you using? You can find the version from Site Admin | Extensions | Install/Uninstall | Components in Joomla! 1.5 or Site Admin | Extensions | Extension Manager | Manage in Joomla! 1.6.

Bob
Huonker 16 Oct, 2011
Hi bob thank you for your quick answer.
I use V3.2. Would you advice to got for 4.0?
Is there no other possibility to avaid JS? If not where could I find an example for the JS code and where do I have to place it?
Thank you very much
Regards

Peter
GreyHead 17 Oct, 2011
Hi Peter,

There's an article from The ChronoForms Book here on linking a drop-down to an 'other' box that you can adapt. But there ae problems with validation of hidden inputs. There's a paid tutorial here on using hideable inputs in your forms using a different validation library.

I wouldn't recommend upgrading to ChronoForms v4 unless you are moving to Joomla! 1.6/1.7 or you need the functionality of MooTools 1.2.3 for something else on your site.

Bob
larry_g1s 21 Nov, 2012
I can't seem to get this to work in v4.0 (RC3.4.1) with the method from The ChronoForms Book. I would have no problem paying 8 bucks for the paid one if I knew that method would work for v4. Any help here?
larry_g1s 26 Nov, 2012
Thank you. I'll check both out.
EDIT: Worked great, big thanks!
This topic is locked and no more replies can be posted.