CF8 - Event Triggers Compared to CF7

Handle hidden required fields in ChronoForms 8.

Overview

In CF8, a hidden field that is marked as required can block form submission because its validation is still active.
Use the new 'Disable validation' listener action on the hidden field. In a recent update, hidden fields also automatically skip validation.

Answered
ChronoForms v8
re remline 25 Sep, 2023
I understand you are still working on adding/flushing out components of CF8 because there are a lot of things missing compared to CF7. We do a lot of form fields that are hidden then revealed based on the selection of another field and the way it is handled in CF7 is very easy to do. Hopefully, that is something you keep in CF8 because I haven't been able to figure it out yet. Thank you!
Max_admin Max_admin 26 Sep, 2023
Answer
it's the same but in 2 steps, first define a trigger based on a field event, then listen to that trigger in any field and do some action, like "showing" a field.

if you want to set a field to be hidden by default then you may use the "Field Class" behavior, set it to "hidden".
in the same field, add a "Listener", listen to "show_this" and set the action to "Show"
In another field, define a trigger to "show_this"
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
ie ieraora 26 Sep, 2023
1 Likes
Max can you please add this inatruction in Faqs > Chronoforms > CF8? Perhaps in a new article, for example Differences with CF7?
re remline 12 Oct, 2023
Okay, I was able to get that to work. That hidden field is "Required" so if I go through the form without selecting the item that would appear that hidden field the form will not submit because that hidden field is required. On CF7 I was able to run an event where I would do "Show, Enable Field(s), Enable Field(s) Validation" If any match "Field 1" equals "Item A". Then another event "Hide, Disable Field(s), Disable Field(s) Validation, Clear Field(s)" if any match "Field 1" Not equals "Item A". How do you do that on CF8? Appreciate your help!
Max_admin Max_admin 23 Oct, 2023
in the new update any hidden field will not validate, also there is a new Listener to "Disable validation".
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.