Skip to Content Skip to Menu

[SOLVED] Can I do this with CB Conditionals (or, somehow?)

8 years 1 month ago - 8 years 2 weeks ago #287130 by Paladin Brewer
Probably the best way to do this is with a picture:



Basically, in the Profile Edit I'd like there to be that "Add Alt" button, if possible. Each time you click a button, it makes a new row of dropdowns for you to select. Then on the actual profile I'd like it to display as shown, with the Name/Race/Class of each alt being close together and the Alt One/Two/Three etc being spaced from eachother.

I don't know if you can do buttons, so I figure worse case it can be a dropdown menu instead of 1, 2, 3 etc and basically work the same. I'm pretty sure I can at least do that part with the Conditionals, though I was more concerned with the profile display/layout.
Last edit: 8 years 2 weeks ago by krileon. Reason: Added [SOLVED] tag to subject

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
8 years 1 month ago #287152 by krileon
You'd need to have multiple groups of the same fields already created in CB > Field Management. You'd then need to condition those groups to show/hide using CB Conditional. Cleanest approach is to probably show the next group when the previous group has its values completed. Beyond that there is no repeat functionality like that at this time.


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.

8 years 1 month ago #287161 by Paladin Brewer
Replied by Paladin Brewer on topic Can I do this with CB Conditionals (or, somehow?)
I think that makes sense, I'll have to try it when I get home. So basically, no button, just have a row of the three fields. If they fill in all 3 fields it makes another row. My only concern on that is if I need 2 conditionals, so if they don't fill in the 2nd row (that will auto popup when they fill in the first row), I then don't want that blank information displaying on the profile.

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

8 years 1 month ago #287180 by Paladin Brewer
Replied by Paladin Brewer on topic Can I do this with CB Conditionals (or, somehow?)
So, having trouble getting this to work the way I want. Here is what I have:

-I have 3 fields (alt_one_name, alt_one_class, alt_one_race) that are Show on Profile and Show on Edit. These 3 fields are on "Altone" tab.

- Altone tab is set to not displayed, div w/o title

-I have a custom HTML field with:
Code:
<div class="row"> <div class="col-sm-6">[cb:usertab tab="29" formatting="divs" /]</div> <div class="col-sm-6">[cb:usertab tab="30" formatting="divs" /]</div> </div>
That is Altsone tab and Altstwo tab (which has no info on it yet).
This field is Show on Profile: No and Show on Profile Edit: Yes. For now I'm just trying to set up the Edit portion, not the profile portion.
This field is on the "Alts" tab.

Now I want this to all show up on the Edit portion correctly, but it doesn't.



I want the editable fields to show up on the "Alt" tab, and the "Alt One" tab should not be showing up at all. I want to make it so the 3 editable tabs are in a row and then I'll add headers above them, and then if those 3 fields are "not empty" another row will appear with conditionals.

I'm apparently doing this very wrong, any help? :/

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
8 years 1 month ago #287217 by krileon
You can't do that without putting all those fields on 1 tab. Alternatively you can get rid of tabs entirely in profile edit by changing the profile edit layout to flat within CB > Configuration > User Profile.


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.

8 years 1 month ago #287225 by Paladin Brewer
Replied by Paladin Brewer on topic Can I do this with CB Conditionals (or, somehow?)
Wait...I have to put all fields on one tab, or only the fields I am trying to use on the Alt tab? Because I thought I already had those on one tab? Is there some sort of special custom html I need specifically for the edit fields to show up over the display fields?

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

Moderators: beatnantkrileon
Powered by Kunena Forum