how to yse events to hide container

conditionally show form containers based on user selection.

Overview

The issue occurs when trying to use form events to show hidden containers, often due to incorrect event settings or container IDs.
Configure the dropdown's event tab to show the container by its exact ID when a specific value is selected, and ensure the container's initial load state is set to hidden. Avoid using problematic values like '0' in the dropdown options.

Answered
Ho Horus 22 Aug, 2015
Hi

I want to simply to create a conditonnal display of the form.

If the user select "1" chronoforms show the container 1
if the user select "1" and "2" he show the container 1 and 2


it's possible to make this ?
Gr GreyHead 22 Aug, 2015
Hi Horus,

To take the first example. In the drop-down or checkbox group click the events tab and add the settings

= 1 : Show : Id of the container to show

Set the container to have a Load state = Hidden.

Save and test

I'm not clear of the logic for the second case, what happens if the user selects 2 but not 1 ?

Bob
Ho Horus 22 Aug, 2015
Hi bob

Sorry but it's not work 😟
Ho Horus 22 Aug, 2015
Hi bob


I send you the picture of the form


If this can help you to understand my problem
Gr GreyHead 23 Aug, 2015
Answer
1 Likes
Hi Horus,

First I recommend that you don't use 0 and 1 as the drop-down values - using 0 can cause problems. Better to use
yes=Yes
no=No
or something similar

The action setting should be Show (and not Show Parent - containers may not have parents)

The Element ID for the container should be it's id e.g. chronoform-container-1 (and not the Label or Title).

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