Forums

Hide and show - area fieldset

kqikuv 05 Apr, 2019
Hello to all,

I am having problems with hiding 2 area fieldsets when the form loads and then making them appear based on the radio button selected.

I have made a first condition, based on a Yes / No answer with radio buttons, but seems I have problems with keeping hidden the 2 area fieldsets.

Thanks to all.

Max_admin 05 Apr, 2019
1 Likes
You want to show/hide the radio or the area ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
kqikuv 05 Apr, 2019
I want to hide the area_fieldset36 and 37 when the form loads. And show them when the respective option is selected by radio boxes of type_of_contribution.
healyhatman 05 Apr, 2019
This is a bug I mentioned a few weeks back Max. The events for whatever reason don't target fieldsets. Probably because most Semantic UI things are divs.

The solution is to put the fieldset area inside a segment area and remove the "ui segment" from the classes of the segment area. Unless you want the lines around the fieldset, which I usually do.
kqikuv 05 Apr, 2019
Glad to know .... I went crazy today trying 100 combinations to get it working. . . . .

How can I exactly do what you suggested to do in order to fix this ?

Thanks a lot
healyhatman 05 Apr, 2019
I feel my instructions were pretty clear, give it a go. Just make sure your event is hiding the outer segment instead of the inner fieldset.
Max_admin 05 Apr, 2019
type_of_contribution is the radio id, so you need to reference the "fieldset" id, and as healyhatman noted, fieldsets can not be referenced, so you need an outer container for that, I recommend using a "Container area" because it fits better, but you do not have the latest update and may not have that!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
kqikuv 05 Apr, 2019


I did this but seems not working.....
kqikuv 05 Apr, 2019
Ok I will update the component right now.

EDIT: seems nothing changes also after update
kqikuv 05 Apr, 2019


Tried also as admin suggested but seems not to work
healyhatman 05 Apr, 2019
Answer
area_container42 is the internal CF name of the view, you need the ID which will be in your case #area_container_42 , including the #
kqikuv 05 Apr, 2019
Finally it works
This topic is locked and no more replies can be posted.