Forums

Show hidden field based on the selection of a checkbox

gvannauw 17 Nov, 2022
Hello everyone
I have in my form a checkbox basically with only two choices, i.e. J or N
Based on the selection, I would like to have another dropbown box appear where other choices can be selected..

So, for instance, if a user selects J in the checkbox 'other club', the hidden dropdown box with all the other clubnames should appear..

I guess this can be accomplished in chronoforms v7??

Tks for yr assistance

Gino
Colnem 17 Nov, 2022
Hi

You have to use Javascript on event to do that.
gvannauw 18 Nov, 2022
ok..
I'm with you ..

any examples ??
I am not familiar with javascript

Cheers

Gino
GreyHead 18 Nov, 2022
Hi Gino,

I think that you can do this without JavaScript.

You need your form to be in Advanced mode, then on the Hidden Dropdown Advanced Settings > Behaviours click on Events in the Interface dropdown. That will open a little form to add an Event. In your case you want to Show this dropdown when the main checkbox equals J

Bob
gvannauw 18 Nov, 2022
Bob
Perfect tip !!

thankis
Eddi Bournell 24 Dec, 2022
Hi Gino, when I go to your site , I see this :
Why?
You need to login to be able to post a reply.