Skip to Content Skip to Menu

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

[SOLVED] Drop down field choices and "Other"

  • rpitera
  • rpitera
  • OFFLINE
  • Posts: 70
  • Thanks: 11
  • Karma: 12
  • Add-ons
11 years 4 months ago - 11 years 4 months ago #228450 by rpitera
Replied by rpitera on topic Drop down field choices and "Other"
So where does the code you described go? I couldn't find a blank in the there that would handle the code...

EDIT:
Strike that - after re-reading through the documentation I see that you use the tool-tip area to put in such code. Thanks; I thought I'd add this in so it is searchable for the next user. :)

I'm hoping that once I get done with this project and have some more time, I'd like to see if I can contribute to some step by step documentation to give back to the CB community.
Last edit: 11 years 4 months ago by rpitera. Reason: Found answer; adding to knowledge base.
The following user(s) said Thank You: nant, krileon

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

  • mrartist
  • mrartist
  • OFFLINE
  • Posts: 51
  • Thanks: 9
  • Karma: 1
11 years 4 months ago #228746 by mrartist
Replied by mrartist on topic Drop down field choices and "Other"
Hi, the extra tip from rpitera was very useful for me and a nice and obvious example of how to use the process, mine was similar, Students, Lecturers, Other, etc, but likewise it took me ages on Joomlapolis to find solutions and information on use of the conditionals process.

There is not one mention of "conditionals" or "Step by Step" in the 1000+ pages of all the CB, CBGJ, CBSubs, etc. PDF documentation, even finding the Conditionals tutorial on the site took me a while to find again (via the forum) even though I've noticed it loads of times before.

After following the above rather brief instructions in every detail for over an hour, and then some trial and error experimentation I finally seem to have it working (I think!).

What took me a while is realising that to get the "Other" text box to appear, three field elements/objects need creating and they all need to be listed under the same tab. One for the main drop down list, another text-box one (to enter the "Other" text), and another delimeter one (not visible at registration and including the two lines of code suggested put in the central description box).

I think I've got this right, the first needs to reference the second and the second needs to reference the third in the "Fields" > "Show" area. It was hard to know which type of conditional to pick and what Field or Field Option does what, but somehow I got it working. I set the newly created first and second fields to be "required" for registration, and the third to not required at registration and not showing at all as it seems to be just some magic code that does it's stuff somehow!

It's all very confusing and not an intuitive process at all, and that's just for one extra "Other" box.

My next task is that I want the "Lecturer" option to send an email to admin so that it can be manually verified as staff (or checked against a list automatically) and then receive upgraded user rights. I need to do similar for the few other levels in that drop-down menu as well. I take it that's what the other four tabs are for under "CB Conditional: Field condition preferences", but what if I have more than four extra conditional requirements in my list?

The other thing I found useful to know but couldn't find anywhere was that the conditionals step-by-step process can be turned off (for registration) without it affecting the conditionals processes. - I didn't need the step-by-step process and it just made my relatively simple form over-complicated. (BTW for those interested, the setting is in CB > Plugins Management > CB Conditional, click config, registration tab and disable Step by Step.

Hope that helps someone.
The following user(s) said Thank You: rpitera

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48464
  • Thanks: 8280
  • Karma: 1443
11 years 4 months ago - 11 years 4 months ago #228756 by krileon
Replied by krileon on topic Drop down field choices and "Other"

It's all very confusing and not an intuitive process at all, and that's just for one extra "Other" box.

If select type fields had a built in other option this wouldn't be the case, but as it stands they do not so you need to go through this process to create the other usage with CB Conditional. We'll be improving a lot of these things with CB 2.0 or later releases.

My next task is that I want the "Lecturer" option to send an email to admin so that it can be manually verified as staff (or checked against a list automatically) and then receive upgraded user rights. I need to do similar for the few other levels in that drop-down menu as well. I take it that's what the other four tabs are for under "CB Conditional: Field condition preferences", but what if I have more than four extra conditional requirements in my list?

CB Conditionals can not send emails. It shows/hides fields/tabs, requires/nonrequires fields, shows/hides field select options, and provides step by step registration; it does not provide anything more than this. To send emails based off a field value you need to use CB Auto Actions with the after registration trigger in an email action. An example of CB Auto Actions in action below.

www.joomlapolis.com/support/tutorials/107-use-cases/18237-assigning-usergroup-based-on-cb-field-value


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.
Last edit: 11 years 4 months ago by krileon.

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

  • mrartist
  • mrartist
  • OFFLINE
  • Posts: 51
  • Thanks: 9
  • Karma: 1
11 years 4 months ago #228760 by mrartist
Replied by mrartist on topic Drop down field choices and "Other"
Thanks for the reminder tip on AutoActions/Triggers, I used them last a couple of years ago and I was mentally mixing/combining the two concept/methods.

I think I haven't quite got the first "Other" thing right yet, on looking in the profile tabs after they're created, I have the "Other" box still showing and reminders from CB that "Other" is not completed, even if I select something else the other still shows. I guess I shouldn't be setting it to "Required". I will test more later.

How is CB 2.0 going? It's been on the cards for such a long time but I think it's still some way off isn't it?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48464
  • Thanks: 8280
  • Karma: 1443
11 years 4 months ago #228769 by krileon
Replied by krileon on topic Drop down field choices and "Other"

How is CB 2.0 going?

It's progressing.

It's been on the cards for such a long time but I think it's still some way off isn't it?

We don't set deadlines. So this basically allows us to work at a comfortable pace to avoid drastic and damaging implementations to be made. This allows for a very stable product. As it stands we should have a release by end of year if not much sooner. So it's not that far off. We're also looking into a CB 1.9.1 release with some bug fixes and few feature additions (like plugin version checker that has been highly requested).


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.
The following user(s) said Thank You: rpitera

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

  • mrartist
  • mrartist
  • OFFLINE
  • Posts: 51
  • Thanks: 9
  • Karma: 1
11 years 4 months ago #228783 by mrartist
Replied by mrartist on topic Drop down field choices and "Other"
Quite frankly I don't know how you do it all, answering all our daft questions, keeping up with the technological changes, integrating bootstrap, keeping it all working across all Joomla versions, etc., etc.

I'm thinking/hoping CB 2.0 will bring a lot of those things together in a more cohesive way that makes things like updating seamless, bootstrap/css/less more centralised and my biggest hope; simplified interfaces with less tabbed pages of all the settings to go through.

I appreciate the simplicity that tabbed interfaces can sometimes bring, but in some cases it's overkill when there are just a few settings on each tab/screen that might be better taking up a lot less space by some well laid out radio buttons (for example), and keeping the more related things together on related pages. Things would sometimes just be easier to comprehend if they could all be seen together on the same page/panel for comparison and with less having to flick backwards and forwards between things trying to remember what was what.

There are so many panels and settings in CB, CBGJ, etc., that just to get them all straight in my head I had to screen grab them all, lay them out in DTP and then print them all out on large sheets which I now have all over my office walls with colour coding and sticky notes all over them. Trying to do all that on screen, page by page, tab by tab is just a nightmare as I try to figure out what all the things do and how they are related, and I've been CB'ing for months (years!).

Well done to you and all at Joomlapolis for all the hard work over the years.

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

Moderators: beatnantkrileon
Powered by Kunena Forum