conditionallay showin/hiding fields

Conditionally show or hide form fields based on dropdown selections.

Overview

The issue occurs because the "Value NOT IN" trigger incorrectly hides fields when a multi-value selection includes a matching option.
For each condition, list all relevant values in both the "Value IN" and "Value NOT IN" trigger fields to precisely control visibility.

Answered
ChronoForms v8
kr kraadde 08 Feb, 2025

I have following new problem:

multiple choice dropdown field and several fields selection that need to be hidden or shown.

The following matrix shows the dropdown options and in green the field that I want to be shown or in white hidden

for instance, if i setup the trigger event such as if "value in Mon to show  field tag_1 " and "if value not in Mon hide tag_1"

then it will hide tag_1 also when the selected dropdown option is i.e. MTW. If I do not set up the trigger "value not in..." then it does not work correctly

Is there as way to avoid this behaviour?

Max_admin Max_admin 08 Feb, 2025
Answer
1 Likes

The Value In should have all the possible values you want to match:

Exk, KKL, KultAn, TW,...etc

And you should repeat them for Value NOT IN

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.