Buy Now
Sign in

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

galbur , June 12 2019, 13:36
G
galbur 145
June 12 2019, 13:36 #387427
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 6
June 12 2019, 21:44 #387435
 1
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.
Web developer at SkySpider.com.au
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
G
galbur 145
June 13 2019, 08:33 #387444
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 6
June 13 2019, 08:53 #387445
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.
Web developer at SkySpider.com.au
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store