Chronoforms 8 Event Triggers

Configure ChronoForms 8 event triggers to show or hide a field based on dropdown selections.

Overview

The issue occurred because the "Value Changes" trigger was firing on any field change, ignoring specified values, and a typo in a dropdown value prevented the "Value In" trigger from working.
Ensure dropdown values match exactly, use the "Value In" trigger with correct values for conditional logic, and note that "Value Changes" will support specific values in a future update.

Answered
ChronoForms v8
go gotpowr 31 Oct, 2024

I know that v8 has the Event Triggers and Event Listeners

So I created:

Field: DropdownAEvent Trigger: Document Ready - HDEvent Trigger: Value Changes - Value(s): 1 - Trigger: HDEvent Trigger: Value Changes - Value(s): 2, 3, 4 - Trigger: SW

Field: DropdownBEvent Listener: Name: HD - HideEvent Listener: Name: SW - Show

The document ready trigger works (loads hidden), but as soon as I change value to any value (1, 2, 3, 4, or back to blank) DropdownB is shown.  It never hides again when value is 1.

I tried Value In instead of Value Changes but that doesn't seem to trigger at all (nothing happens)

Max_admin Max_admin 01 Nov, 2024

Could you please post screenshots ? it will be easier to replicate the config, or a demo form for this issue specifically

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
go gotpowr 01 Nov, 2024
1 Likes

Hi Max,

I just got it working, it seems I've noticed the following (if you can confirm):

  • The "Changes" function doesn't look at the value(s) entered, it simply fires if a field changes.  Thus having 2 change events with different "values" won't work

I just realized my dumba** screwed up dropdown value.  It was supposed to be "IR" but was "IR ".  Thus the 2 "value in" weren't working properly and I assumed the 2 didn't work together properly.  I fixed it and redid the "INs" to include the proper "spelling" and it works fine now for "IN".

DOH!

Thanks!

Max_admin Max_admin 02 Nov, 2024
Answer

The "Value changes" did not support field values, but I have added this support for the next update!

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.