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] CB Conditionals

  • msws
  • msws
  • OFFLINE
  • Posts: 10
  • Thanks: 1
  • Karma: 0
11 years 3 months ago - 11 years 3 months ago #230510 by msws
[SOLVED] CB Conditionals was created by msws
I am having trouble with CB conditionals.

I have 5 user groups:

Agent Basic
Agent Premium
Team Basic
Team Premium
For Sale by Owner

On the two team groups, they have the ability to add 10 additional groups of information to their profile. Each of these 10 groups is divided into 10 tabs. Tabs are named Agent 1 through Agent 10.

I have used conditionals to hide the Agent 1 through Agent 10 tabs from Agent Basic, Agent Premium, and For Sale by Owner (fsbo). I've tried every different combination and as it stands now:

Agent basic- the 10 tabs do not appear on the Edit Profile screen. This is correct
Agent premium- the 10 tabs do not appear on the Edit Profile screen. This is correct
Team Basic- the 10 tabs DO NOT appear on the Edit Profile screen. This is my problem
Team Premium- the 10 tabs do appear. This is correct.
FSBO- the 10 tabs do not appear on the Edit Profile screen. This is correct

I'm using the exact same configuration for all of my conditionals so I have no idea why it's the team basic conditions that are causing me so many fits. I really need some help!
Last edit: 11 years 3 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 3 months ago #230522 by krileon
Replied by krileon on topic CB Conditionals
I'm guessing you have 2 conditionals on your tabs to check for the 2 different values. However you should be using only 1 conditional that checks for 2 values. Example as follows.

Display: Tab conditional
Field: Profile Type
Operator: Is REGEX
Value: /Team Basic|Team Premium/
Mode: Show

With the above you'd separate more values with | if you want to match more. Replaces the values as needed if the 2 values above don't match exactly.

If you're using 2 conditionals then you have 1 conditional that is successful and 1 that is failing. This means the tabs are being show then immediately being hidden.

Please understand multiple conditionals work independent from one another. This makes it very easy for them to fight for control. It's not an AND or OR situation, but a "whoever conditions last".


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.

  • msws
  • msws
  • OFFLINE
  • Posts: 10
  • Thanks: 1
  • Karma: 0
11 years 3 months ago #230524 by msws
Replied by msws on topic CB Conditionals
Thank you. You are right. I do have multi conditions on each tab. I'll adjust my settings according to your instructions and will let you know if I run into any problems. I appreciate your help.

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

  • msws
  • msws
  • OFFLINE
  • Posts: 10
  • Thanks: 1
  • Karma: 0
11 years 3 months ago #230528 by msws
Replied by msws on topic CB Conditionals
worked perfectly. big hugs! thank you!
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