CB conditional issue

6 years 6 months ago #297683 by cirp
CB conditional issue was created by cirp
Hello,

I maintain a web site used to manage a non-for-profit research community. I use community builder and CB conditional to display certain fields in user profiles upon conditions based on other fields status.

For example, I declared a checkbox field called "I want to invite a guest" that members can use to advise that they will invite a guest for the next community meeting.

There are two other fields in profiles : a dropdown called "MemberType" that record the class of each member and a checkbox called "I-will-participate-the-meeting" that record if the member will be present to the next meeting or not.

The rule is : only members of specific type that will come in person to the meeting are allowed to invite a guest.

The condition upon which the "I want to invite a guest" checkbox should be displayed in profile is therefore :

If ("dropdown MemberType" REGEXP /^(Type1|Type2)$/) AND (checkbox "MyParticipation = yes") Then
show checkbox "I-Invite-Guest" in profile
else
hide checkbox "I-Invite-Guest" in profile

I have tried many configurations, I have not been able to make it work.

Each of the two conditions work well if I take them independently.

Aka :

if I declare in field "I-Invite-Guest" configuration, the "field condition self" rule ("MemberType" REGEXP /^(Type1|Type2)$/) then SHOW
then the checkbox "I-Invite-Guest" is only displayed if member type is of the class "Fellow" or "Honorary fellow"

if I declare in field "I-Invite-Guest" configuration, the "field condition self" rule checkbox "MyParticipation = yes") then SHOW
then the checkbox "I-Invite-Guest" is only displayed if member type is the member has declared that he will participate

In both cases, this is what I want : it works.

But if I declare both rule 1 AND rule 2, then the checkbox seems to appear upon strange conditions that I don't understand (may be an exclusive "OR" of both conditions rather than a "AND" ?

Could anyone help ?

Thanks

Please Log in to join the conversation.

6 years 6 months ago #297695 by krileon
Replied by krileon on topic CB conditional issue
There is no AND/OR conditioning in CB Conditional. The second condition you're applying is reverting the first. AND/OR conditioning is planned in a later release. At this time multiple conditions act independently and were mainly added for "Conditional Others" usecases.


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 to join the conversation.

6 years 6 months ago #297703 by cirp
Replied by cirp on topic CB conditional issue
Thank you Kyle,

does this mean that there is no way with cb conditional to implement my use case at this stage ?

---
Olivier

Please Log in to join the conversation.

6 years 6 months ago #297740 by krileon
Replied by krileon on topic CB conditional issue
Correct, you can not condition the same field twice as you're currently trying to do.


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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.198 seconds

Facebook Twitter LinkedIn