Forums

Weird behaviour of "Disable/Enable Validation" with class selector

finetuning 22 Aug, 2017
Hello,

I would like to report a bug with the enable/disable validation function on field events.

I have setup a radiobox with two values that controls the validation of a group of fields by using events.
Each field has a custom CSS class assigned with the extra attributes.
The fields are selected in the events through a CSS class selector.

If I trigger the disable validation and then trigger the enable validation, the validation is re-enabled only on the first item of the group. Problem remains also changing the display order of the fields.

Please note that with the same radiobox and some custom JS functions I am also switching the visibility of the Segment Area containing the fields: those events appears to be working fine.

Thanks
Mattia
Max_admin 23 Aug, 2017
Hi Mattia,

The events part has been improved but that should be available in the next update, you can send me a message using the contact page for a patch file.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
finetuning 23 Aug, 2017
Thank you, I have fixed the issues at the moment by using ID selectors, but I would be happy to try a patch.
I am sending you a message via the contact page.

Mattia
Max_admin 03 Sep, 2017
Answer
Hi Mattia,

I have made some tests and this looks like working fine using the latest updates, please retry that and let me know.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
finetuning 04 Sep, 2017
1 Likes
Thanks, enable/disable validation using the CSS class selector is now working correctly.

Mattia
healyhatman 23 Aug, 2018
Heyhey Max - using .class selector isn't working for me still. Validation isn't disabled correctly - it will happily hide or add the disabled class to the field, but validation still fires.
This topic is locked and no more replies can be posted.