[SOLVED] Filter user list not working as I want

12 years 6 months ago - 12 years 6 months ago #178393 by mark102
Hi,
I'm triyng to set up an userlist filtered on 2 values (in my case this is the account type) with no success. When I create a filter with one value in simple mode the userlist is working but when I add one more value the user list going to show 0 users. I use the value EQUAL TO. There aren't typing errors.
Can you help me please?

Please Log in to join the conversation.

12 years 6 months ago #178469 by krileon
Replied by krileon on topic Re: Filter user list not working as I want
When using Basic filters it adds them as "AND" to the query. So the fields would both need to match in order for a user to display. If I understand correctly you're wanting an "OR" scenario as in if Field A = 1 or Field B = 2 then display the user. If this is correct please try the below "Advanced" filter.
( ( ue.`cb_fieldname1` = 'value1' ) OR ( ue.`cb_fieldname2` = 'value2' ) )

With the above replaced cb_fieldname1 and cb_fieldname2 with the actual names of your fields (e.g. cb_text, avatar, user_id, etc..). You'll also need to replace value1 and value2 respectively.


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 to join the conversation.

12 years 6 months ago #178479 by mark102
Replied by mark102 on topic Re: Filter user list not working as I want
It's working perfectly!

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.725 seconds

Facebook Twitter LinkedIn