Show hide dropdown boxes

MarkD 18 Jan, 2013
Hi There,

I have recently installed Joomla 3.0.1 and installed Chronoforms. I have built several very simple forms before but I am a real novice at all this so now that I need to do something more complex, i am really struggling.

There are threads on here about pretty much the same thing but i really battle to understand how to apply it and get it to work for me.

Basically, our website allows people to study different course. They need to notify us what they want to study but filling out a form. The first option would be to select Full-Time or Part-Time courses (either dropdown list of radial buttons, whichever is easiest). Depending on which one they select another dropdown list appears with all the courses in that field. They then select the exact course they want to study. It also needs a feature incase the user want to enrol in more than one course, so a link saying "want to enrol in another class?" and if they click it then another identical dropdown box appears so they can select another class and this must go on so they can enrol in as many classes as they like. Then of course....all the inputted data need to be emailed to me.

How on earth would I create this? If this is too complicated for a novice like me, what other options do I have? I have to get a form like this working asap.

Thank your for your time,
Mark
GreyHead 18 Jan, 2013
Hi Mark,

Up front I think you will need some help with this.

The double drop-down is fairly easy and there is a FAQ or tutorial to help with that. The triple drop-down gets more complicated. You also want to be able to have multiple copies added which complicates it again. There is a FAQ for some replicating blocks of standard elements but not for replicating double drop-downs, let alone treble-dropdowns.

Thinking about it I'd suggest that the way to do this is not to duplicate the drop-down but to save the results of the first set of selections into the form, then add the next set. The image below shows something similar. You select a Product type, which then shows a list of Model IDs, you add a serial number and click 'Add Registration' to add to the list at the bottom. Your application would have another drop-down instead of the Serial Number box.

Bob

PS I suggest that you don't use your email address as a username here as it is public and may be scraped and used for spam. PM or mail me and I'll change it for you.
MarkD 18 Jan, 2013
Thanks so much for the help Bob, very much appreciated.

The example you show is great. How would I go about building it? Any tutorials I could follow?

Thanks again,
Mark
GreyHead 18 Jan, 2013
Hi Mark,

It's a piece of code I wrote for a client several months ago. I'll see if I can dig out the files and send you a copy by PM.

Bob
MarkD 18 Jan, 2013
Wow! Thank you so much Bob. The Chronofrom kindness never ceases to amaze me!
This topic is locked and no more replies can be posted.