Skip to Content Skip to Menu

[SOLVED] bug in conditional 4.x plugin

  • carin
  • carin
  • OFFLINE
  • Posts: 417
  • Thanks: 18
  • Karma: 0
9 years 11 months ago #254381 by carin
Replied by carin on topic bug in conditional 4.x plugin
OK, installed 4.0.2 but still no success.

I have the exact same setup as on CB 1.9. Why did you change that behaviour? I have to readjust EVERYTHING. This is not a 2.0 updadte, this a virgin install process.

On my CB 1.9 reg form only that select field was displayed on page load. It worked as intended. All other fields were hidden because the "Empty" option was applied correctly (in hiding all fields but the select itself).

Now all the fields are displayed on page load ... what a frustration, so much work for things that were done already ...

CB 2.0

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48499
  • Thanks: 8284
  • Karma: 1443
9 years 11 months ago #254383 by krileon
Replied by krileon on topic bug in conditional 4.x plugin
Please PM backend super administrator login credentials as well as include what field is giving you problems and will take a look.

CB 2.0 is a migration. You just don't see the migration as we do it during install. It's equal to going from Joomla 1.5 to Joomla 3.3. It's not a small change.

Only the last conditional on a field is relevant. If you condition a field 5 times then the 5th condition is the only condition that matters. This is because it's not a matter of AND/OR. The conditions are completely independent of one another. AND/OR support is planned in a later release.


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.

  • carin
  • carin
  • OFFLINE
  • Posts: 417
  • Thanks: 18
  • Karma: 0
9 years 11 months ago #254385 by carin
Replied by carin on topic bug in conditional 4.x plugin
"Only the last conditional on a field is relevant."

Ok?!

1. Why are there 5 tabs = 5 conditions?
2. How do I condition the different values if only one tab gets recognised?

CB 2.0

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48499
  • Thanks: 8284
  • Karma: 1443
9 years 11 months ago - 9 years 11 months ago #254387 by krileon
Replied by krileon on topic bug in conditional 4.x plugin

Why are there 5 tabs = 5 conditions?

Because people kept asking for it and a single field can conditional multiple separate fields by doing this. The issue is when you tell a field to show/hide 5 different times that it's going to cause problems. As in such a situation it doesn't know what to do. Should it keep the first condition? The last condition? Combine the conditions into an AND statement? Combing them with an AND operator would be the ideal situation, but that's not implemented yet.

How do I condition the different values if only one tab gets recognised?

I've no idea what kind of scenario you're trying to implement so I've no idea what to suggest. Are you hiding every field then having those individual fields condition again based off something else? That's a situation I could this is problem happening. If that is the case do the other conditions on those fields function?


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.

  • carin
  • carin
  • OFFLINE
  • Posts: 417
  • Thanks: 18
  • Karma: 0
9 years 11 months ago #254391 by carin
Replied by carin on topic bug in conditional 4.x plugin
In CB19 I had no problem getting the desired result because it was quite obvious how the conditioning works. But now I have no clue what this thing does.

My goal:
- two options in the select drop down: o1 and o2
- a number of fields are conditioned by that select field
- condition 1: on page load the default option is the "empty" option hence only the select field is displayed
- condition 2: user selects o1 and the specified fields are displayed/hidden
- condition 3: user selects o2 and the specified fields are displayed/hidden

This was easy in CB19 and seems to be impossible in CB20.

CB 2.0

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48499
  • Thanks: 8284
  • Karma: 1443
9 years 11 months ago #254398 by krileon
Replied by krileon on topic bug in conditional 4.x plugin
Try disabling condition 1 as it does not sound like it's needed. If condition 2 shows/hides a set of inputs then condition 3 shows/hides a set of inputs then condition 1 is pointless double conditioning.

A lot of this behavior was bugged in older releases of CB Conditionals. The jQuery was not reliable. The jQuery plugin I've completely rewritten to give reliable results and it's setup in preparation for AND/OR implementation. As it stands since AND/OR is not implemented it only cares about the final conditional.

Please PM backend super administrator login credentials so I can better review your conditional usage and duplicate locally. In doing so I'll be able to see better what behavior is going on for your 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.

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

Moderators: beatnantkrileon
Powered by Kunena Forum