Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] Hidding fields in conditional, if value is changed

  • jupco
  • jupco
  • OFFLINE
  • Posts: 34
  • Thanks: 3
  • Karma: 1
10 years 11 months ago - 10 years 11 months ago #236265 by jupco
Hi guys, sorry English is not my home language, so this could be little fun :)

I'm making adress by CB conditionals

It shows three drop down fields region/district/town

We have 8 regions.

I create 8 fields "district" which every one is equal to one of values from region field, so if you choose region 01, conditional shows field district 01 with districts from that region.

The same i have between district and towns.

Everything is OK.

If i choose region 01, it shows field district 01, where i can choose betven all districts in this region. After selecting my district, it shows field town, where are all towns in that district.

But problem is, if i select everything and after i change value in region field, it changes values in district field OK! but dont hide field town, and after if i choose the new district, its dont hide old towns, but just shows new field, with new towns. so i have there 4 fields region/district/town(from old district value)/town(from new district value)

But!

If i change value just in district and region stays the same, its OK, and its shows just new towns.

How can i make, that if user change his selection, the all condtitionals resets and starts again?
Last edit: 10 years 11 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
10 years 11 months ago #236278 by krileon
You'll need to enable value resetting, which will reset a fields value when the condition is fired. This should then chain the fields properly. You can enable this within CB > Plugin Management > CB Conditional > Config.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • jupco
  • jupco
  • OFFLINE
  • Posts: 34
  • Thanks: 3
  • Karma: 1
10 years 11 months ago #236288 by jupco
krileon you are great man! many many thanks :)

after enabling that setting is everything alright :P
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum