Forums

Events trigger and listener

fabioferrero 15 Oct, 2024

I'm using joomla 4.4.8 and last version of Chronoforms. I've build a page with a dropdown with these options:

00=Select

1b=Paper

2b=Ink

3b=House

4b=Hot

5b=Cold

The dropdown have two events triggers: one with VALUE IN with value "1b" and trigger "show-1b", other with VALUE NOT IN with value "1b" and trigger "hide-1b". Then I've a container (with multiple text fields) that have two events listeners: one with "show-1b" and action "SHOW" and one with "hide-1b" and action "HIDE".

What I want is if the user select "1b" (Paper), the form will show the container, otherwise the container will remain hide... But doesn't work... The container is always displayed... What's wrong? (I actually use the "Preview" button to test the form).

Thanks.

Max_admin 15 Oct, 2024

when you select a value other than 1b, does it hide the container or not ?

if not then can you attach the form backup ? you may copy the form first and remove any extra info before attaching the backup of the copy

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
fabioferrero 16 Oct, 2024
Answer
1 Likes

Ok, I've found the problem! The triggers name cannot have the dash inside, so trigger with name "hide-1b" doesn't work, while trigger with name "hide1b" works correctly!

Thanks for the moral support ;)

Max_admin 16 Oct, 2024

Thank you for reporting the fix! 😊 I have fixed this in the next update so that the dash should work

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
You need to login to be able to post a reply.