Some checkboxes not working

7 months 3 days ago #303161 by sclarke
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
7 months 3 days ago #303162 by krileon

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 - Templates - CBSubs - Hosting - Forge - Incubator - GroupJive
--
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 EST to 4:00 PM EST. 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.
6 months 5 days ago #303866 by sclarke
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?
6 months 5 days ago #303869 by krileon

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 - Templates - CBSubs - Hosting - Forge - Incubator - GroupJive
--
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 EST to 4:00 PM EST. 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.
Moderators: beatnantkrileon
Time to create page: 0.400 seconds
Facebook Twitter Google LinkedIn