Forums

how to yse events to hide container

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 ?
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
Horus 22 Aug, 2015
Hi bob

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


I send you the picture of the form


If this can help you to understand my problem
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.