how do show/hide field settings works?

scaramo 17 Mar, 2014
Hello,
using joomla 3.2 installed complete chronoform suite extension V5.0 RC 4.1 (Plugin, Component, Module) but wasn't able to correctly set show and hide functionalities. If am not wrong those settings should allow to show up hidden question field when a specific value is choosen. I'll try to explain trough an example:

GOAL: create a form to know if someone has a driving license and, obviously only for those who has, which kind of vehicle they are enabled to drive.

SOLUTION DESCRIPTION: have a form field asking if the user has or not a driving license and, when yes answer is selected, should appear a field asking listing vehicles kind.

HOW TO?:
TEST 1. I'll create a new form and, from designer option, will place a radio box replacing label with question: "Have you a driving license?" using default answer options "0=No" and "1=Yes". Then I'll add a checkbox group setting label "Which kind of vehicle you're enabled to drive?" which options will be "Car" "Motocycle" and "Truck" and setting Load State "Hidden" without changing its field ID "checkbox_group2". I go to setup options and, of course, pick up HTML (render form) for on load action. Save the form and have a preview on it. Unfortunately it does not work: checkbox field is directly shown from the beginning.

TEST 2. As previous but choose Load State "parent hidden" from "checkbox_group2". Then I go to radio field settings and from event on value "1" choose action "show parent" specifing terget field ID "checkbox_group2".
[attachment=0]showparent.png[/attachment]
It seems better becouse on loading the form the checkbox group field is not shown, the issue is that neither choosing value "yes" it came out😟

Any help?

From my understanding
scaramo 17 Mar, 2014
My Lords,
I would like to make you all know having a look to demo form in component panel would had been sufficient to solve such a problem: there is a precompiled form named "demo-fields-events" from which is possible to understand it is not sufficient to set on value show parent but also to specify on different value to hide it.

I still have some issue by the moment am not able to use it on nested radio button field and it is not possible to cancel event you added in excess but.... well maybe that's becouse it only is a release candidate and not final version?

[attachment=0]showparent2.png[/attachment]

long life to Chronoengine development team
Ell 06 May, 2014
I have the same problem ! it's a bug... the class data-load-state="hidden_parent" is not writen in the code / wizard designer !
it's ok when is on custom code and when I write " data-load-state="hidden_parent" " in the div :s

how resolve this problem please ? because it's not simple to write with and in which modification !😟
Max_admin 06 May, 2014
Hi,

@scaramo, please test the latest update!
@Ell, The "Load state" is added under the "General" tab, there is an option to hide parent!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.