Radio buttons help =(

wanrong 01 Apr, 2011
Hi, i have just been starting to use chronoform for these few days was pretty impressed by how "fun" its able to work with.

I encounter a problem right now regarding the radio buttons, i have a groups of Radio buttons with label. From what i know if i can only pick 1 choices for each element. However what i wanna do here is a few sets of element however only 1 choice can be made throughout the group of elements how i go about doing it?

Picture illustration:
[label-A] choice1-o choice2-o
[label-B] choice1-o choice2-o
[label-c] choice1-o choice2-o

after choosing labelA choice1 and if i wish to change to labelB choice1 it would show that my choices from LabelA goes to labelB

[label-A] choice1-o choice2-o
[label-B] choice1-o choice2-o
[label-c] choice1-o choice2-o

forgetten to state that im using joomla 1.5.15, chronocontact 3.1 RC5.5
wanrong 01 Apr, 2011
i think its alright to forget about this problem since its impossible 😟

Here comes the next problem let say if i pick a radio button that specify 2player how can i make the require textbox appear for that 2player to input their particulars?
GreyHead 01 Apr, 2011
Hi wanrong,

The problem of cascading radio buttons is the similar to double-drop-downs. I've never tried to do it but it can probably be solved with JavaScript.

For your second question you could also have a box appear with JavaScript but I think that probably one box is enough as you can identify which player it relates to using the radio button settings.

Bob
wanrong 01 Apr, 2011
Hi, just to make sure using Javascript i could hide or generate additional textbox for the number of rquired users?

Can i have some sort of headstart of how i could do a number of dynmaic generated textbox depending to the radio button's choice?

Thanks again so much.
GreyHead 01 Apr, 2011
Hi wanrong,

Sorry but the forum is just too busy at the moment for me to have time to write code examples. There is an extract here from The ChronoForms book which may be helpful.

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