Forums

how to show or hide a field set using a button event

NickOg 10 Aug, 2019
I have a field set - id = idFldInstructions. I have used css to make that invisible on load. I then have a button with an event 'Click' set to show that field set.
Click - Show #idFldInstructions

I can get it to work to show a control within the field set but not the field set itself. Should that be possible? If not are there 'areas' that I can use as a container to show and hide content??
Regards
Nick
healyhatman 11 Aug, 2019
Answer
Use a "hidden" class to hide things, not css.

Also last I knew, there was a bug where fieldsets can't be targeted by field events. Use a container instead, with the fieldset inside it.
NickOg 11 Aug, 2019
Thanks - I will try that later. Must clean up broken branches first😟
Don't quite understand hidden class. Isn't that the same as using
div{
visibility: hidden !important;
}

I shall try it and see.
NickOg 11 Aug, 2019

Use a container instead, with the fieldset inside it.



That is the solution plus the 'hidden' class - thanks.
This topic is locked and no more replies can be posted.