[SOLVED] List - Adv Filter - Field value = cur. user value

12 years 7 months ago - 12 years 7 months ago #177078 by ibrent
I have a CB Field entitled Company. I'm trying to use the Advanced filter to create a dynamic list of users that are in the same Company as the current logged in user. How can I get the current users Company value? Thanks!

Please Log in to join the conversation.

12 years 7 months ago - 12 years 7 months ago #177089 by krileon
What type of fields is "Company"? This could make a huge different based off its type. If it's a single drop-down field then you'd just do a basic filter of FIELD Equal To [cb_myfield] (replace cb_myfield with your actual fields name).

Please note if you're using CB 1.7 then substitutions for drop-down fields are broken and you'll need to see the below bug ticket (fix provided).

forge.joomlapolis.com/issues/2713


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 7 months ago #177097 by ibrent
Yes, its a single drop-down field. The company field is cb_company. So using the basic filter...

Company Equal To [cb_company]

Should work? [cb_company] grabs the logged-in user's cb_company value?

Thanks for the quick reply!

Please Log in to join the conversation.

12 years 7 months ago #177099 by ibrent
Also, I'm using 1.2.1

Please Log in to join the conversation.

12 years 7 months ago #177141 by ibrent
Worked like a charm! That was much easier than I was trying to make it! Thanks!

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.329 seconds

Facebook Twitter LinkedIn