Default hidden fieldset area, show on field event

deltafidesign 14 Jan, 2019
Hi, I would like to hidden a fieldset area, not only the fields inside that area but also the fieldset area bcause I've styled it with a background color and I don't want that it's displayed until a certain condition. So I want to hide the fieldset area and show it only when I change another dropdown field. At the moment I've setted event to display the fields inside the fieldset area according to this dropdown change but the fieldset area is anyway displayed (empty because fields are hiddend by default) but due to the fact that I've created a CSS rule to assign it a background I can see this annoying rectangle empty. Is there a way to also default hidden the fieldsetarea and show it on dropdown field change?
healyhatman 14 Jan, 2019
Add #fieldsetid to your events.
deltafidesign 14 Jan, 2019
I tryed with the class element but didn't work.
healyhatman 14 Jan, 2019
Screenshot please, of your events.
healyhatman 14 Jan, 2019
add class "hidden" to the coloured box as well
deltafidesign 15 Jan, 2019
Hi, thanks for reply but I don't understand what you mean with "coloured box", can you try to explain me better?
healyhatman 15 Jan, 2019
You have a coloured box you're trying to hide, add the hidden class to it
deltafidesign 15 Jan, 2019
I cannt add a class to it, it's the fieldset area and there's no field in it to add a class.
healyhatman 15 Jan, 2019
So you can't use the field labelled "CLASS" to add a class to?
deltafidesign 15 Jan, 2019
Exactly, in the fieldset area there's no field "Class"😟
Any other solution?
healyhatman 15 Jan, 2019
I was being sarcastic there's a field called class RIGHT THERE on the image you posted.
GreyHead 15 Jan, 2019
HI deltafidesign,
​
There is when I check the Fieldset element settings: I see Designer Label, ID, Class, and Title.
​
Bob
deltafidesign 15 Jan, 2019
Ok, I can add there the class "hidden" and the fieldset is no longer displayed. Now How can I display the fieldset only when change the dropdown field?
healyhatman 15 Jan, 2019
Already told you earlier
​
Add #fieldsetid to your field events.
​
Replace fieldsetid with the if of the fieldset
deltafidesign 16 Jan, 2019
Thanks for reply, I already tryed it before but it didn't work. I've tryed both with "#" and without it, but it's not displayed when I change dropdown field value.
healyhatman 16 Jan, 2019
Answer
1 Likes
OK for some reason it looks like fieldset isn't affected by the field events. Put it inside a segment area, change class to hidden (remove ui segment) and use the id of the segment area in the field event.
deltafidesign 16 Jan, 2019
Thanks so much healyhatman, that worked.
This topic is locked and no more replies can be posted.