Forums

Show/Hide Load State & Event - Affect on Label

millermulti 02 Feb, 2015
Hello,

I am working on a form which requires a user to select an item from a drop down which in turn shows/hides fields and labels further down the form. I have set up the drop down with a number of events which in turn show/hide the fields by their ID based on the selection. I have also set the fields further down the page with initial load state of hidden. The issue I am running into is that even though the show/hide on fields is working properly, the labels which are associated with the fields are always displayed, which is very confusing. I looked at the Show/Hide Javascript that is being generated by Chronoforms and it does appear to only target the fields not the labels. Is this by design? Is there a way to show/hide both the field and label?

Any guidance would be greatly appreciated.

Thanks!
millermulti 02 Feb, 2015
One additional issue I am having, I have two fields one is a check box group the other two radio buttons. When I hide the fields, the check boxes or radio buttons are hidden as well as the labels for the checkbox/radio button. When I use an drop down event to display the fields, the checkbox/radio button labels appear (i.e. Yes/No) but not the radio button or check box themselves. They stay hidden.
GreyHead 05 Feb, 2015
Hi MilleMulti.

You need to use Show Parent & Hide Parent to hide the label as well as the input element.

I don't really understand the 'additional' problem but it may be that you are hiding the element and showing the parent? Is that possible?

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