- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2025 10:38 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2025 11:04 PM
HI @contactvwak ,
you have update the dictionary (name)
add the script at the end
var firstName = current.getValue('first_name');
var lastName = current.getValue('last_name');
var userName = current.getValue('user_name');
(firstName ? firstName + ' ' : '') + (lastName ? lastName + ' ' : '') + (userName ? '(' + userName + ')' : '');
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2025 10:53 PM - edited ‎07-16-2025 10:54 PM
It is not possible to use 2 different fields on the reference field.
If is it really needed, you can create a new field on sys_user table and update that field with Display Name + UserID. Use new field as display field. Not Recommended.
You can also use the showfieldmsg to display other field in info message below first field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2025 11:02 PM
Hello @contactvwak ,
This is not possible. However, if you want to populate UserID on the reference field then make Display Value true on the User ID field.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2025 11:04 PM
HI @contactvwak ,
you have update the dictionary (name)
add the script at the end
var firstName = current.getValue('first_name');
var lastName = current.getValue('last_name');
var userName = current.getValue('user_name');
(firstName ? firstName + ' ' : '') + (lastName ? lastName + ' ' : '') + (userName ? '(' + userName + ')' : '');
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2025 11:15 PM
please share some screenshots where is this 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