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 Conditional Plugin

  • momoeagle
  • momoeagle
  • OFFLINE
  • Posts: 7
  • Thanks: 0
  • Karma: 0
10 years 10 months ago - 10 years 10 months ago #238891 by momoeagle
[SOLVED] CB Conditional Plugin was created by momoeagle
Hi,

I require the following functions in my implementation.
A drop down single select field with 8 options
A second drop down single select field which display options based on the selection of the first field.

This means 8 field conditions are required, although there were only 5 tabs for conditions. I understand this is hard coded. Is there any way I could hard code to 8?



What I tried:
Since I have less than 10 options, I thought I could use Field Conditional Others (with 5 conditions) for the first drop down and Field Conditional Self (with 3 conditions) for the second drop down.

However, I noticed that for Field Conditional Self, I could only choose to hide or show entire fields, and not field options like Field Conditional Others. Could this function be implemented?


Thanks!
Last edit: 10 years 10 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 10 months ago - 10 years 10 months ago #238895 by krileon
Replied by krileon on topic CB Conditional Plugin
No you can not increase the number of conditions. If you need more than 1 condition you are configuring your conditions wrong. I only added up to 5 as users insist on having them; I will not add more, sorry it's just not needed and it multiples the performance hit x5 due to this. In nearly all cases you should use "Conditional Self" instead of "Conditional Other". Field options can not be hidden by "Conditional Self" as there's no way of knowing at that time a fields options or a way to pass the field object to the custom input class (as of yet, can probably add this to CB 2.0).


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

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

  • momoeagle
  • momoeagle
  • OFFLINE
  • Posts: 7
  • Thanks: 0
  • Karma: 0
10 years 10 months ago #238903 by momoeagle
Replied by momoeagle on topic CB Conditional Plugin
Thanks Kyle. I get what you meant.

My solution is to have 8 different drop down lists each using Conditional Self instead.

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

Moderators: beatnantkrileon
Powered by Kunena Forum