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] CB Conditionals not working

  • qneal78710
  • qneal78710
  • OFFLINE
  • Posts: 111
  • Thanks: 11
  • Karma: 0
9 years 2 months ago - 9 years 2 months ago #269247 by qneal78710
[SOLVED] CB Conditionals not working was created by qneal78710
Scenario:
I have a dropdown list of two choices:

(Are you a therapist yes/no)
if Yes (value 1)
then
Show Occupation (value 1)
if No (value 2)
then
Hide Occupation (value 1)

For some reason the Occupation shows on my registration page even when it is suppose to be hidden.

I noticed that no matter what I chose, my screen does not refresh itself to give the "Occupation" choice a chance to do anything. The problem right now seems to be that "Occupation" is showing on the registration when it is suppose to be hidden.
Last edit: 9 years 2 months ago by krileon.

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

  • qneal78710
  • qneal78710
  • OFFLINE
  • Posts: 111
  • Thanks: 11
  • Karma: 0
9 years 2 months ago - 9 years 2 months ago #269248 by qneal78710
Replied by qneal78710 on topic CB Conditionals not working
pdf file attached
Last edit: 9 years 2 months ago by qneal78710.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
9 years 2 months ago #269249 by krileon
Replied by krileon on topic CB Conditionals not working
You're double conditioning the field. The conditions will automatically reverse themselves. So all you need is 1 condition to either show or hide and if the condition doesn't match it reverses it. So for example if the value is equal to 1 then show XYZ field; if the value isn't 1 then it'll automatically hide XYZ field. It's best to do this as a Conditional Self instead of Conditional Other. So you'd have something like the below.

Condition: Field conditional self
Field: Are you a therapist
Operator: Equal To
Value: 1
Mode: Show


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.

  • qneal78710
  • qneal78710
  • OFFLINE
  • Posts: 111
  • Thanks: 11
  • Karma: 0
9 years 2 months ago #269251 by qneal78710
Replied by qneal78710 on topic CB Conditionals not working
thanks, it is now working.
The following user(s) said Thank You: nant

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

Moderators: beatnantkrileon
Powered by Kunena Forum