Forums

DEMO: "Fields events and features" doesn't work

galbur 12 Jun, 2019
Hi

I like Chronofroms a lot. All the possibillities to build complex Forms are great.
One thing i don't like. With every Version i have to learn a new Component. I started with Version 3, than 4, than 5 and now 6. Always with a huge learning Curve (As a non Programer).
Ok. I tried to rebuild a version 5 form now in Version 6. When i check a chekbox a certain Container (with some more Form Elements) appears. When i uncheck it, the container dissapears.
In the chronofroms 6 i wasn't able to build the same. I tried the Demo Form "Fields events and features" to see how the (new) concept works. But unfortunately the Demo doesn't work. In the former Version, there was a "load state" for the container. I miss this in the new version.
Is this a bug or did i forgot something?

Thank you
Best regards
Christoph
healyhatman 12 Jun, 2019
1 Likes
Field events work perfectly for me, what have you got in your field events?

To have something hidden on load, either set up the field events or add "hidden" to the container class or class of the field or area.
galbur 13 Jun, 2019
Hi healyhatman

Great. It works now with the class "hidden". Thank you!
But the Demo doesn't work.
One more Question ;-) : I like to use a button instead of a checkbox. That works.
But with the checkbox i have the possibillity to check/uncheck and to show/hide a container.
Is this possible with the button too to hide a container?

All the best
Christoph
healyhatman 13 Jun, 2019
You can use jQuery if you like to addClass / removeClass on the element you want to show / hide.

Like
jQuery("#button_id").click(function() { jQuery("input[name='field_name']").toggleClass("hidden"); });
And you'd put that in a javascript block with DOM Ready ticked.
roman5527 18 Oct, 2019
Hi, i have on my site this problem too.

You can see it here : http://s-autoservis.itemedia.sk/kontakty/objednavka-predvadzacej-jazdy

can you help me fix it ?

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