Drop Down Fields Refresh

Kloemi 25 Nov, 2020
Hi everyone,

if you use multiple drop down fields, which are always based on each other and then go back to the first drop down field the form will not refresh. What do you have to do to make this work?

Example:

Dropdown 1 - Selection 1:
Option 1 - Eat
Option 2 - Drinking

Dropdown 2 - Option 2 (hidden event field which is only shown when dropdown 1 option 1 is selected)
Option 1 - Pizza
Option 2 - Pasta

Dropdown 3 - Option 3 (hidden event field which is only shown when dropdown 1 option 2)
Option 1 - Cold drink
Option 2 - Hot drink

Dropdown 4 - Option 4 (hidden event field which is only shown in Dropdown 2 option 1)
Option 1 - Salami
Option 2 - Ham

etc.

If you have pushed through from dropdown 1 option 1 (Pizza) to dropdown 4 option 1 Salami and then suddenly want to go back to dropdown 1 option 2 Drink, all fields have to refresh. But that does not happen! How do you have to configure the fields to make this work?

Thanks for your help
Max_admin 27 Nov, 2020
Please post a form backup with the problem, and please take out any features not needed for demonstrating the issue so I can test this here!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Kloemi 07 Dec, 2020
Hi, thank you very much for your reply. In the attachment I send the backup.

Thanks for the effort.[file=13577]Zustaendigkeiten_07_Dec_2020_08_50_46.cf7bak[/file]
Max_admin 19 Dec, 2020
Answer
Ok, first, you are using many text nodes wrong, if you have HTML code then use HTML, not text node!

For the problem, the first event of the Dropdown 4 for example, should be "hide" when "Dropdown 1, 2, 3" changes, this way it will hide itself when any other dropdown changes, then you can add another even to show it based on specific value!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Kloemi 20 Dec, 2020
Thank you for the answer. Unfortunately, I do not get any smarter from it. I have tried to rebuild the dropdown fields as described, but the error persists. What am I doing wrong? I have attached two documents for your understanding.

If I select Food >> Pizza and then Salami in the first step of the order, everything works fine. But if I want to change the first dropdown field from Food to Drinks, the previously created dropdown field Pizza Toppings remains and is not hidden.

Maybe you can customize the backup form for me as it needs to be.

Desperate greetings and thanks[file=13626]Testformular_20_Dec_2020_11_59_48.cf7bak[/file]
Drop Down Fields Refresh image 1
Max_admin 22 Dec, 2020
all you have to do is to add new cases to the "Pizza toppings" > Hide event, add a case when:
"Order selection" IN 1,3
that will hide the pizza toppings when the order selection is reset

you may also use the "triggers" event if you have many values, but the "IN" can also work well!
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.