Forums

mixed identifiers for events problem

emmexx 24 Jan, 2018
From the docs and faqs it is not clear what should be the content of the identifier property in the event tab.
I mean that if you enter just one identifier everything works as expected but if you mix different selectors the events are not triggered or are triggered depending on the selectors.
I tried an enable validation or a hide event for a calendar and a checkboxes group. I tried:

- mycheckboxes,mycalendar
- mycheckboxes[],mycalendar
- mycheckboxes,#mycalendar
- mycheckboxes[],#mycalendar
- mycalendar,mycheckboxes
- mycalendar,mycheckboxes[]
- #mycalendar,mycheckboxes
- #mycalendar,mycheckboxes[]

and other variations I don't remember. I had to separate the events, one for the checkboxes group and one for the calendar.

I tried to debug the js code that parses the identifiers but I'm not sure I understand the meaning and probably the code is incomplete.

If the separation of the selectors is by design, it should be written in the docs and in the identifier tooltip.

bye
maxx
Max_admin 31 Jan, 2018
Answer
Hi maxx,
You can target multiple elements by adding different selectors in multiple lines, example:
#id_field_1
.filed2_class
field3_name
Best regards
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.