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