i had a form with a checkbox and a slider.
I have added these two event in my checkbox:
= checked show chronoforms-container-4
!= uncheck hide chronoforms-container-4
the events works , but i dont want the slider shown when the form is loaded, because i must check /uncheck the checkbox once to hide it.
Is there a way to hide the slider directly when my form loads?
I ask this because there is no load state for the container.
so i try jquery but there is some conflicts with the events.... and the events dont work...
If the load state is ok for the next version, i will wait...
if someone have a solution, this should help me and a lot more people.
Thanks by adavnce
I have added these two event in my checkbox:
= checked show chronoforms-container-4
!= uncheck hide chronoforms-container-4
the events works , but i dont want the slider shown when the form is loaded, because i must check /uncheck the checkbox once to hide it.
Is there a way to hide the slider directly when my form loads?
I ask this because there is no load state for the container.
so i try jquery but there is some conflicts with the events.... and the events dont work...
If the load state is ok for the next version, i will wait...
if someone have a solution, this should help me and a lot more people.
Thanks by adavnce
This worked for me in default load state pf contaner, "#pag_envio" is my id div container
i set in custom code before HTML(render form)
i set in custom code before HTML(render form)
<?php
$css = array();
$css[] = '#pag_envio{ display: none; }';
$doc =& JFactory::getDocument();
$doc->addStyleDeclaration($css);
?>
This topic is locked and no more replies can be posted.