Flexible change the display name value of a reference field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I have an reference field "A" on my custom table which is used on both tables: incident and user
=> What I want is to show different display name when users access to table incident and user like it will be showing display reference value = "Hello" in table Incident and showing display reference value = "Good bye" in table User. Is this logic even possible to do ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
No. A table can only have 1 display value. You could update your custom table with a display name that is a combination of both, showing "Hello, Good bye".
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
please use approach shared by @Mark Manders
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @sieusaopolo15 ,
This is can be done through g_form.setvalue() and onload client script on incident and user table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Did you test this?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
