Skip to Content Skip to Menu

🌟 CB Editor Assistant 1.0.0 is here! Discover our new AI Joomla Plugin that wrote its story! (and this banner!)
Start at just $12.50/month* or 💸 save 30% with our 🛍️ Intro Black Friday Offer for a lifetime*

[SOLVED] Question about search in users list

  • liaskas
  • liaskas
  • ONLINE
  • Posts: 391
  • Thanks: 36
  • Karma: 2
  • Add-ons
5 years 1 month ago - 5 years 1 month ago #314973 by liaskas
Hello

We have two joomla user groups and one query field that is used only by the one user group.

When we use the cb user list search, the query shows for both joomla user groups and that is what we want to avoid.

example:

1. users of user group 1 need to fill the query field on registration. This is ok!

2. users of user group 2 do not fill this query field. As a matter of fact this is hidden for them with conditionals.

The problem now with the cb users list is that the query field shows on searches for both and the search results are not correct because other users use this field for both joomla user groups.

Is there a way to hide a field in cb list search when it is empty? (not filled by the user)

it is a Query field - single select.

Thank you in advance.
Last edit: 5 years 1 month ago by krileon. Reason: Added [SOLVED] tag to subject

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48551
  • Thanks: 8291
  • Karma: 1445
5 years 1 month ago #315003 by krileon
Replied by krileon on topic Question about search in users list
If you want the field also conditioned for userlist searches be sure to expand the Locations fieldset in your condition and set "Userlists Search" to "Yes". As far as hiding empty fields on your userlist you'll need to enable the hide empty fields parameter within CB > Configuration > User Profile by setting "Show Empty Fields" to "No".


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.

  • liaskas
  • liaskas
  • ONLINE
  • Posts: 391
  • Thanks: 36
  • Karma: 2
  • Add-ons
5 years 1 month ago #315021 by liaskas
Replied by liaskas on topic Question about search in users list
Solved...!

Thank you for your help.
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum