Skip to Content Skip to Menu

CB Conditional

9 years 5 days ago - 9 years 5 days ago #272074 by edmundcheong
CB Conditional was created by edmundcheong
Previously, CB Conditional has an option to:

1. Show
2. Hide
3. Required
4. Non-required

It seems in the most updated version, no. 3 and 4, is removed. Or am I missing something?

Previously, i will just enter that following field becomes required if the other field meets the condition.

Now that i've made compulsory (cb_a) and when the other field meets the condition it shows (cb_a). But if it doesn't meet the conditio , it hides but when i hit submit, it says that the hidden field is required and i go on. I hope you understand what i meant.
Last edit: 9 years 5 days ago by edmundcheong.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48435
  • Thanks: 8275
  • Karma: 1443
9 years 3 days ago #272117 by krileon
Replied by krileon on topic CB Conditional
Conditioning the required state has been removed. It was too buggy to function properly. CB just doesn't support required state toggling very well at this time. Once we've refactored the field class it should be easier to toggle things like that for a field.

A required field can be conditioned fine, but you need to ensure you are not conditioning a field multiple times. Multiple conditions on a field will cause strange behavior. For example if you have 2 different conditions trying to hide the field they'll conflict and only 1 condition will apply and the other condition may reset it causing it to show again.


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