Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

CB Conditionnal on multiple check box

  • nijan
  • nijan
  • OFFLINE
  • Posts: 108
  • Thanks: 1
  • Karma: 0
11 years 11 months ago #221337 by nijan
Hello,

I have a multiple check box for the language.
I would like to use a condition for a group a selected language.

For example : English-French-Dutch-Spanish
If the user select English and/or Dutch then another field is displayed.

Is it possible ? I tried with if the field contains English but without any result.

Thanks !

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

  • nijan
  • nijan
  • OFFLINE
  • Posts: 108
  • Thanks: 1
  • Karma: 0
11 years 11 months ago #221338 by nijan
Replied by nijan on topic CB Conditionnal on multiple check box
I open this issue quickly.
It works with does conains.

Issue can be closed (sorry).

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

  • nijan
  • nijan
  • OFFLINE
  • Posts: 108
  • Thanks: 1
  • Karma: 0
11 years 11 months ago #221339 by nijan
Replied by nijan on topic CB Conditionnal on multiple check box
And I'm back :-).
In fact it works with only one selection.

If I have multiple selection it fails.

Is it possible to insert differents values separated by ";" or another character ?

Cheers !

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48707
  • Thanks: 8319
  • Karma: 1447
11 years 11 months ago - 11 years 11 months ago #221358 by krileon
Replied by krileon on topic CB Conditionnal on multiple check box
If you need to match multiple values with OR separator then you need to use REGEX operator with a REGEX value. Example as follows.

/English|French/


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

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

  • nijan
  • nijan
  • OFFLINE
  • Posts: 108
  • Thanks: 1
  • Karma: 0
11 years 11 months ago #221426 by nijan
Replied by nijan on topic CB Conditionnal on multiple check box
Hi,

Is it possible to match multiple values with AND separator ?

Cheers !

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48707
  • Thanks: 8319
  • Karma: 1447
11 years 11 months ago - 11 years 11 months ago #221481 by krileon
Replied by krileon on topic CB Conditionnal on multiple check box
Possibly. You can try something simple like the below example.

FIELD VALUE: Value1|*|Value2|*|Value3|*|Value4
REGEX: /.*Value2.*Value4.*/

It won't work in reverse though so ensure values are ordered as you see them when editing the field in backend.


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

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

Moderators: beatnantkrileon
Powered by Kunena Forum