Forums

How / Hide area field

g.pierini 09 Mar, 2019
Dearest all,

In my form I'd like to let the form change according to the user's choice, it works fine with single fields but when I try to hide an entire field are in order to not set a rule for every single field, it doesn't work, what's wrong?

The working scheme is:

Radio button A: 1) _____ 2)____

1 shows calendar
2 shows radio button

if 1 --> it should open a single area field and hide the others
if 2 --> the same

I set the ID as it says but it doesn't do anything!

Thanks!
Giacomo
healyhatman 09 Mar, 2019
Did you though? If you're setting an ID you need to use #id
healyhatman 09 Mar, 2019
Also disabling validation on the area won't disable validation on the fields. If you really want to do it on multiple fields, class is the better way to do it.

Also you don't need to set a rule for every field, the field identifier takes a multi line list of identifiers.

​[file=11701]Field_events_-_by_method_09_Mar_2019_22_40_10.cf6bak[/file]
Max_admin 10 Mar, 2019
Hello,

Hiding a whole area can work by setting the event action to "hide" and the element id to #area_id

Disable/enable/disable validation of ALL fields inside an area can be done by setting the "element id" to
#area_id :input
Or give all the fields you want to disable a specific class and use that class

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
healyhatman 10 Mar, 2019
*gasp* that's a good one didn't think of that
Max_admin 10 Mar, 2019
Any selector to match the fields in the area will work!🙂
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.