Skip to Content Skip to Menu

Field conditional others - how are priorities set if multiple fields condition the same "other" field?

10 years 6 months ago #244561 by Michael2014
Hey guys,

I have a field "jobs" that contains job declarations for male and female members. There are two main groups.

I also have a field "Area of work" that conditions the field "jobs" on what job groups are shown, i.e. Group A or B.
I also have a field "form of adress" that is meant to condition the field "jobs" in terms of whether a male or female job description is used.

Example:

1. Field "form of adress: Mr./Ms."
2. Field "Area of work: Service / Management"
3. Field "job description: waiter/waitress/host/hostess/Male Manager/Female Manager"

Now Field "Area of work" conditional others IF VALUE "Service" then "hide "job description:Male Manager/Female Manager"

This works.

Now Field "form of adress" conditional others IF VALUE "Mr." then "hide waitress/hostess/Female Manager"

This does not work.

It looks like I can only condition the field "job description" once, i.e. filtering the values for the field of work. Another round of "filtering" to eliminate the unwanted gender does not work.

Any ideas on what I am doing wrong or how to better get a grip on this?

I had a work around where I had created fields for each gender and each job, but I want to keep my database as streamlined as possible.

Thanks in advance for any help,
Michael

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 6 months ago #244581 by krileon
The last conditional applied to a field is the only one that matters. jQuery may get confused by this a little depending on the order the fields load, but the PHP side will always take the last condition. So you need to be careful with conditioning the same field multiple times. Right now you can't specify and AND/OR scenario for the conditions so that makes multiple conditions on same field difficult or impossible 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.

Moderators: beatnantkrileon
Powered by Kunena Forum