Container visibility based on a second radiobox

Informatique 1d ago

Hello,

I have a first container (container00) that contains a radiobox (name=choix_prog) with two options: OUI or NON. On this radiobox, I defined three triggers:

  • Document Readyhide_container01

  • Value IN "OUI"show_container01

  • Value IN "NON"hide_container01

So when the user clicks OUI, the container container01 is displayed. That part works fine — the event listeners show_container01 and hide_container01 are triggered correctly.

Inside container01, I have another radiobox (name=choix_selection) with three possible values:

  • CLAS = Sélection perso

  • PACK = Pack

  • CENT = Centrale

I also defined event listeners and event triggers for this second radiobox.

The expected behavior is:

  • When the user selects CLAS, only container_clas should be visible.

  • When the user selects PACK, only container_pack should be visible.

  • When the user selects CENT, only container_cent should be visible.

However, I cannot control the visibility of these three containers — they are always visible, no matter what I do.

What is the best way to configure this behavior? I’ve tried several setups, but nothing seems to work for this second radiobox.

Max_admin 20h ago

How do you hide the 3 containers inside the container01 ?

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
You need to login to be able to post a reply.