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 5 months ago - 11 years 4 months ago #227660 by rpitera
I'm hoping someone can steer me in the right direction; I tried searching through the forums but it was hard to find criteria to search with for this question. Maybe describing it will help...

I would like to have a "Title" drop down field, visible on registration with a few choices:

Teacher
Administrator
Student
Other

If they choose anything but other, I'd like that choice to be displayed on their profile as their Title. If they choose "Other", I'd like a text field to appear on the registration form and have them enter a free form title in there and have that display on their profile as their Title instead of the word "Other".

Is this possible? I'm sure this question has been asked before but I couldn't find a way to search for it... :unsure:

Any help would be much appreciated!
Last edit: 11 years 4 months ago by rpitera.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48464
  • Thanks: 8280
  • Karma: 1443
11 years 5 months ago #227662 by krileon
Replied by krileon on topic Drop down field choices and "Other"
Yes, that's very possible. Using CB Conditional you'll need to edit your Other text field and set it to display if the Title dropdown is set to Other. Next you can use the below substitution usage to conditionally display the based off the dropdown.
Code:
[cb:if cb_title!="Other"][cb_title][/cb:if] [cb:if cb_title="Other"][cb_other][/cb:if]

Basically with the above in a Delimiter field or anywhere substitutions are supported if the cb_title field is set to Other then it'll display cb_other (the text field value) and if it's not Other then it'll display cb_title.


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.

  • rpitera
  • rpitera
  • OFFLINE
  • Posts: 70
  • Thanks: 11
  • Karma: 12
  • Add-ons
11 years 5 months ago #227666 by rpitera
Replied by rpitera on topic Drop down field choices and "Other"
Thanks, Kyle; I think I'll be able to figure this out better when I see it on the back end, and this steers me in the right direction. Appreciate your quick reply.

BTW, I didn't duplicate post - I actually sent a post to the moderator asking them to delete this post because I put it in the Advanced Support instead of Professional Support - so I assumed this one would be deleted and then I reposted it in the correct section. Sorry for the confusion; I guess you didn't see the moderator request before you replied to this. But thanks for being so quick!

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

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

BTW, I didn't duplicate post - I actually sent a post to the moderator asking them to delete this post because I put it in the Advanced Support instead of Professional Support - so I assumed this one would be deleted and then I reposted it in the correct section. Sorry for the confusion; I guess you didn't see the moderator request before you replied to this. But thanks for being so quick!

Oh, I see; no worries. Have deleted your other topic and moved this one to professional forums as 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.

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

  • rpitera
  • rpitera
  • OFFLINE
  • Posts: 70
  • Thanks: 11
  • Karma: 12
  • Add-ons
11 years 4 months ago #228448 by rpitera
Replied by rpitera on topic Drop down field choices and "Other"
Stupid question: Is there a difference a "delimiter field" and "fields delimiter" because I only see the latter as a choice in the field types. I cannot figure out for the life of me where I should be putting that substitution logic of:
Code:
[cb:if cb_title!="Other"][cb_title][/cb:if] [cb:if cb_title="Other"][cb_other][/cb:if]
And I've been searching through the forums for a similar answer with no success.

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 #228449 by krileon
Replied by krileon on topic Drop down field choices and "Other"
"fields delimiter" is a "delimiter field".


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.

Moderators: beatnantkrileon
Powered by Kunena Forum