Some checkboxes not working

6 years 1 month ago #303161 by sclarke
Replied by sclarke on topic Some checkboxes not working
Hi Kyle,

By "Your only option would be to turn off value resetting within CB Conditional plugin parameters" what do you mean exactly?

Is there any way to hide the apprentice field if any one of the other 4 checkboxes are checked and if the apprentice field is checked to hide the other 4 fields?

Thanks

Please Log in to join the conversation.

6 years 1 month ago #303162 by krileon
Replied by krileon on topic Some checkboxes not working

By "Your only option would be to turn off value resetting within CB Conditional plugin parameters" what do you mean exactly?

Within CB Conditional > Parameters you can turn off value resetting. Value resetting resets the value of the field if the condition doesn't match then triggers conditions to allow chaining fields together.

Is there any way to hide the apprentice field if any one of the other 4 checkboxes are checked and if the apprentice field is checked to hide the other 4 fields?

You're creating a loop by doing this so no not really. The only way to stop the loop is to turn off value resetting. It seams like your condition maybe backwards though. You should have something like the following.

cb_apprentice - no conditions
cb_coordinator - show if cb_apprentice is not equal to 1

The above would work fine. Your Apprentice field would just always be available and if checked then your Coordinator field hides otherwise Coordinator shows fine.


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 to join the conversation.

6 years 1 week ago #303866 by sclarke
Replied by sclarke on topic Some checkboxes not working
Hi,

Is there any way to add a CSS class to a CB field when it is set and remove a class from the field when it is unset. So, when cb_apprentice is ticked it will get a class added to the div around the checkbox and label and when it is unchecked the class gets removed?

So, the <div id="" class="sectiontableentry2 cbft_checkbox form-group cb_form_line clearfix"> line would get another class added or removed from it?

Please Log in to join the conversation.

6 years 1 week ago #303869 by krileon
Replied by krileon on topic Some checkboxes not working

Is there any way to add a CSS class to a CB field when it is set and remove a class from the field when it is unset. So, when cb_apprentice is ticked it will get a class added to the div around the checkbox and label and when it is unchecked the class gets removed?

From CB Conditional, no. You'd have to write the jQuery to do that your self.


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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.219 seconds

Facebook Twitter LinkedIn