- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 01:27 AM
Hi Team,
I'm using the below variable attribute on list collector, I'm able to see the User ID and Name in search.
ref_auto_completer=AJAXTableCompleter,ref_ac_columns=user_name,ref_ac_columns_search=true,ref_ac_display_value=false
But When we select the record from dropdown, I want to see User ID, instead Name. For example below it will show Akash Kumar once I select the record, it should show the user_name (kumar123) user id. Please suggest.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 04:14 AM
Hi, you have to make display value of user id field is false in sys_user table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 04:14 AM
Hi, you have to make display value of user id field is false in sys_user table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 06:42 AM
Thank you, I got it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 04:37 AM
Hello,
Do the below:-
Go to the sys_user table and configure dcitionary
For here make user_name display as true:-
And the name field display as false.
Please mark my answer as correct based on Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 06:06 AM
The only way to show user id once record is selected is to make User ID (user_name) as Display=true on sys_user table.
But remember this will be a platform level change and it will start showing user id on form fields whichever refers to user table
Please discuss this with your customer if this is really required.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader