How to enable an extra text-field when radiobox y=YES is chosen?

ko kotisivutohtori 19 Mar, 2020
Hello,
​
I would need instructions how to enable (show) another field when someone chooses y=Yes from a radiobutton. I know how to do it with the checkbox (or separate checkbox lines), but cannot find info how to do the same with radiobutton. Can someone explain please! Thanks!
​
- Anne
he healyhatman 19 Mar, 2020
It's exactly the same as for the checkbox, just using the VALUE (not the label) of the radio, and using the selecting / unselecting event.
ko kotisivutohtori 19 Mar, 2020
Sorry I do not understand... the checkboxes are all separate boxes (at least I did not find a way to add all checkbox values into one field).
​
I need exact details what to add to each field. I have tried different ways but nothing seems to hide the text-field when radiobutton is either not chosen or n (NO) is chosen.
Below you see the images. The field_opiskeletko is the radio group with the following options:
y=Kyllä opiskelen
n=En opiskele
​
If they choose "y", then I want the next field "opintolinja" to show up.
​
With these details, what exactly do I add and to what tab/field?
​
Thanks!
- Anne
How to enable an extra text-field when radiobox y=YES is chosen? image 1
he healyhatman 20 Mar, 2020
You see the part on number 1 where you've left "affected elements" blank?
ko kotisivutohtori 20 Mar, 2020
Hi,
added, no change, the field shows up at first load.
- Anne
​
p.s. any change of getting pictures of an example?
​
How to enable an extra text-field when radiobox y=YES is chosen? image 2
he healyhatman 20 Mar, 2020
You need the other part, the HIDE event when unselecting.
ko kotisivutohtori 20 Mar, 2020
Thank you!
Even with this comment, I had to test and try different settings before I got it work...
​
You know if you'd just sent me an image from start...we would have both gotten it faster/easier. 😃
​
Over and out!
​
- Anne
This topic is locked and no more replies can be posted.