Skip to Content Skip to Menu

CB conditional for 2 conditions

10 years 8 months ago #240882 by waxweazle13
CB conditional for 2 conditions was created by waxweazle13
Hi there,

i'm trying to create a tab that's only visible for the profile user (owner) and for a specific group (15).

For the user as mentioned on: www.joomlapolis.com/support/tutorials/107-use-cases/18336-using-cb-conditionals-to-hide-or-show-fields-or-tabs
i used the last example.

For the gids i found some examples on the www.joomlapolis.com/support/tutorials/107-use-cases/18353-using-substitutions-throughout-cb page.
value [cb:if user="#me" gids includes "15"]1[/cb:if]
equal to 1

I can create both situations separate and they both work..separate. Is there someway to combine these or create a condition that will do this both?

I've tried multiple conditions but that doesnt give the result i want and learned from topic :

krileon wrote:

One question, just to clarify.. if I have multiple "conditional", does the plugin work on the "AND" or "OR" rules?

Multiple conditions are always "and". It'll try to match each condition until one fails and if it does it'll stop the auto action from happening.


After struggling for hours and hours i would really appreciate some help with this puzzle.

Current versions:
CB 1.9.1
CB_conditional plugin 3.0.12

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 8 months ago #240915 by krileon
Replied by krileon on topic CB conditional for 2 conditions

Is there someway to combine these or create a condition that will do this both?

No, the conditionals act independently of one another. The last condition to apply to a field will be the only condition that matters.


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.
The following user(s) said Thank You: waxweazle13

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

10 years 8 months ago #240938 by waxweazle13
Replied by waxweazle13 on topic CB conditional for 2 conditions
:dry: ok, that's too bad. I'll have to find another way. Using back-end for the group is an option although is was trying to avoid it.. :whistle: Anyway thanks!

Just out of curiosity, why are the more tabs in the condition plugin? How can they be used?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 8 months ago #240978 by krileon
Replied by krileon on topic CB conditional for 2 conditions

why are the more tabs in the condition plugin? How can they be used?

Because a field can have conditional self and conditional other usages. So you can have a field controlling say 3 other fields differently. There are also One Way conditionals that function one direction and won't reverse that can be combined to create different effects. Personally I don't see much point beyond using just 1 conditional, but others requested it. It's possible a later release may get an AND/OR usage.


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.
The following user(s) said Thank You: waxweazle13

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

Moderators: beatnantkrileon
Powered by Kunena Forum