is there a text mode code to make a typeahead field only serve up members of a certain role? | Community
Skip to main content
ChrisMc4
Level 2
September 18, 2020
Question

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

  • September 18, 2020
  • 1 reply
  • 745 views

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Doug_Den_Hoed__AtAppStore
Community Advisor
Community Advisor
September 19, 2020

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