Skip to Content Skip to Menu

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

Show or Hide Fields According Conditionals

  • batisteli
  • batisteli
  • OFFLINE
  • Posts: 7
  • Thanks: 0
  • Karma: 0
8 years 3 months ago #283626 by batisteli
Good morning!

For each type of registration (i have five) form should display or not some fields. Eg: if user choose option 1, the birthday field is mandatory and displayed. If he choose option 2 this field is not mandatory but displayed. So i created another non mandatory field named birth_day_no.
The first field of my form is the options. This field have a "fields conditonal others" if he is empty all fields are hide. The field birth_day_no have "field conditional self" defined if the user choose the option 2, in the options field, he is displayed. The problem is that this condition overriding the conditional of options fields and his is dispalyed when the options is empty. How can i fix this?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 3 months ago #283630 by krileon
Replied by krileon on topic Show or Hide Fields According Conditionals
You can only condition a field once. There is no AND/OR usage yet. You should also always use condition self instead of condition others in nearly all usecases. Condition others is strictly for simple mass show/hide of several fields to make management easier, but it will be going away in a later release.

For your usage it sounds like a typical profile type condition so I recommend the below.

Display: Field conditional self
Field: FIELD_NAME_HERE
Operator: Equal To
Value: VALUE_HERE
Translate Value: No
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.

Moderators: beatnantkrileon
Powered by Kunena Forum