ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

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

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
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.
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
radio-and-textfield.png
healyhatman 20 Mar, 2020
You see the part on number 1 where you've left "affected elements" blank?
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?

opinstolinja.png
healyhatman 20 Mar, 2020
You need the other part, the HIDE event when unselecting.
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
healyhatman 20 Mar, 2020
Bit hard to send you an image from my phone
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com