Show the team name in default team filter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vincent
    Senior Member
    • May 2017
    • 176

    Show the team name in default team filter

    I have a user field and want to show users of the specific team by default.

    client\custom\src\views\entity-a\fields\user-field.js

    getSelectFilters: function () {
    return {
    'teams': {
    type: 'linkedWith',
    value: ['5afb9539793785674'],
    }
    };
    }

    In the web page, only id '5afb9539793785674' is shown in the filter. How can the team name be shown in the filter? thanks.
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    add also nameHash:{5afb9539793785674: "My team"}

    Comment

    • Vincent
      Senior Member
      • May 2017
      • 176

      #3
      thank you

      Comment

      Working...