How to display two columns names in record producer reference field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2023 04:08 AM
Hi,
I have created a record producer with a Caller field, which is a reference to the sys_users table.
When clicking on this field, I would like the referenced table to display the user's name and ID. I attempted to achieve this using list layout configuration, and it works for the backend view. However, it doesn't seem to work in the workspace.
Any insights or suggestions on how to make this work in the workspace would be greatly appreciated.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2023 04:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2023 04:48 AM - edited 12-25-2023 04:48 AM
this is what i see in the backend view (name and ID):
and this is the same form in workspace (name and email):
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2023 04:56 AM
thanks for the screenshots which show me that you are not talking about any workspaces but probably a service portal.
So please follow instructions in the following article/video: https://www.glidefast.com/post/how-to-display-two-columns-in-a-reference-field-in-servicenow
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2023 07:26 AM - edited 12-25-2023 07:27 AM
You can use Variable Attributes to define the behavior for catalog variables.
Service Catalog variable attributes
Replace user_name (or id) by your ID Number field name
ref_ac_columns=user_name;id,ref_auto_completer=AJAXTableCompleter