Expand my Community achievements bar.

is there a text mode code to make a typeahead field only serve up members of a certain role?

Avatar

Level 3

In our custom form for adding Resources we want to be able to select a Content Strategist. The Typeahead field currently allows me to enter anyone from our firm regardless of their role. Is there a Filter that I can add that will just make only the Content Strategists be the possible roles to choose from? Obviously, we would then apply this to other fields for other roles we want to choose from. So if there is a code solution, how can I adapt it? Thanks!

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Reply

Avatar

Level 10

Hi Chris,

The 2:55 minute mark of this Typeahead video (part of the 2019.4 other enhancements notes) illustrates how to filter a typeahead field based on homeGroupID=$$USER.homeGroupID. In a similar fashion, you could filter where roleID=5f5fd07d000408c2161862ecd8da756b (replacing the latter 5f5... number with the ID of your Content Strategist Role).

Regards,

Doug