Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount! Get 20% off now with code SPOOKY-2024!

Hide Tab in registration for Plans CB subs

11 years 9 months ago #219192 by deltafidesign
Hide Tab in registration for Plans CB subs was created by deltafidesign
I have 2 plans: Plan A and Plan B
Plan A -> Tab A and fields A
Plan B -> Tab A and fields A and Tab B and Fields B

Now Tab and fields B are only shown for Plan B, so I hide fields B in the workflows for Plan A, and they are correctly hidden.

Now, using CSS I styled TAB B so I see it anyway in the registration form for Plan A, but correctly fields B are still hidden.

How can I completly hide the tab without removing CSS style?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
11 years 9 months ago #219196 by krileon
By tabs do you mean the tabs added by CB Conditional? CBSubs can't fire CB Conditional events so when a tab becomes empty CB Conditional won't know to disable it. Don't think you can even do this with CSS as you need to use jQuery to loop through the inputs on a tab and if they're all hidden then set a class on the tab to hide it.


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.

11 years 9 months ago #219199 by deltafidesign
Replied by deltafidesign on topic Re: Hide Tab in registration for Plans CB subs
No, TAB B and fields B are not conditional. Just setted with CBSubs.

I've setted CSS like that:

#cbtf_45 {
background-color: #EEEEEE;
border: 1px solid rgba(0, 0, 0, 0.05);
border-radius: 6px 6px 6px 6px;
box-shadow: 0 3px 7px rgba(0, 0, 0, 0.1);
font-size: 11px;
margin-bottom: 15px;
padding: 10px;
}

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
11 years 9 months ago #219206 by krileon
I see, I don't think you can without removing the CSS. CBSubs is just removing the fields row and not the tab. Nor does it apply a class to the empty tab for you to use to strip your CSS. You'd need to edit CBSubs JS and add for it to add a class to the tab when it's empty so you can use that class to remove your CSS or to also hide the tab element.


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.

11 years 9 months ago #219218 by deltafidesign
Replied by deltafidesign on topic Re: Hide Tab in registration for Plans CB subs
Ok, would suggest to add this feature in future releases, so Tabs can really be removed from code too if not necessary.

Thanks

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

Moderators: beatnantkrileon
Powered by Kunena Forum