Skip to Content Skip to Menu

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

CB Conditional ==> AND conditions

  • nijan
  • nijan
  • OFFLINE
  • Posts: 108
  • Thanks: 1
  • Karma: 0
11 years 6 months ago #224956 by nijan
CB Conditional ==> AND conditions was created by nijan
Hello,

I've a little problem with conditions.
I have 3 fields : Field 1, Field 2 and Field 3.

Field 1 is a single dropdown list with value 1, value 2 and value 3.
Field 2 is a multiple checkbox and is only displayed if Field 1 = value 1. Until here no problem. Values are = Test 1, Test 2 and Test 3.
Field 3 is only displayed if Field 2 = Test 1. Until here no problem.

So here my 3 fields are displayed. If user changes the field 1 to another value, Field 2 will not be displayed ==> OK BUT Field 3 remains displayed.

How can I set my AND condition ?

To display field 3 = (Field 1 = "value 1") AND (Field 2 = "Test 1")

I tried with 2 separates conditions but I fails.

Thanks !

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #224979 by krileon
Replied by krileon on topic CB Conditional ==> AND conditions
There is no AND conditions. It checks the first conditional you have configured then checks the second conditional you have configured. If the first conditional makes the field show and the second conditional makes the field hide then the field will be hidden. Each conditional is done independently of one another. This may change after CB 2.0 where we've a conditional API to work with, but for now will remain as is.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum