Skip to Content Skip to Menu

🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

CB CONDITIONAL a suggestione on use boolean operator

  • conquist
  • conquist
  • OFFLINE
  • Posts: 26
  • Thanks: 0
  • Karma: 0
9 years 11 months ago - 9 years 11 months ago #257010 by conquist
Hi, I need to insert this condition only in VIEW PROFILE.

IF
FILED1 IS NOT EMPTY OR FILED2 IS NOT EMPTY OR FILED3 IS NOT EMPTY
THEN
SHOW FILED4
ELSE
HIDE FILED4
END-IF

or, which is the same thing:

IF
FILED1 IS EMPTY AND FILED2 IS EMPTY AND FILED3 IS EMPTY
THEN
HIDE FILED4
ELSE
SHOW FILED4
END-IF


FILED1, FIELD2, FIELD3 are type RADIO BUTTON with 4 values

FILED4 is type CUSTOM HTML used like a label.

Wath is the best way to use the plugin ?

Have you any suggestion for me please ?

========================================
Joomla version 2.5.28
CB version 2.0.4
CB Conditional 4.0.5
Last edit: 9 years 11 months ago by conquist.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48622
  • Thanks: 8303
  • Karma: 1446
9 years 11 months ago - 9 years 11 months ago #257023 by krileon
There is no AND/OR support yet. It's planned for a later release. However, as you're wanting this to apply to profile view only you can do the following condition on FILED4.

Display: Field conditional self
Field: Custom > Value
Value:
Code:
[cb:if FIELD1!=""]A[/cb:if][cb:if FIELD2!=""]B[/cb:if][cb:if FIELD3!=""]C[/cb:if]
Translate Value: No
Operator: Equal To
Value: ABC
Translate Value: No
Mode: Show
Registration: No
Profile Edit: No
Profile View: Yes
Userlists Search: No
Userlists View: Yes

Replace FIELD1, FIELD2, and FIELD3 with the actual name of the fields in the above value.


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.
Last edit: 9 years 11 months ago by krileon.

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

Moderators: beatnantkrileon
Powered by Kunena Forum