Hide display name in reference variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2022 10:35 PM
Hi All,
I have used the following filter in variable attributes for custom table field
ref_auto_completer=AJAXTableCompleter,ref_ac_columns=u_group_approvers,ref_ac_columns_search=true,ref_ac_display_value=false
My requirement is to display just a single list of group approvers field and I have set "ref_ac_display_value=false"
Stil the display name is visible along with group approvers
please suggest any changes to syntax to display only one field(group approvers)
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2022 10:43 PM
Hi Ashok,
The "ref_ac_display_value" attribute is not listed on the available Service Catalog attributes page. I'm assuming that this means it's not compatible with the Service Catalog.
Reference - https://docs.servicenow.com/bundle/sandiego-servicenow-platform/page/product/service-catalog-managem...
Instead try as below,
1.) Set these in variable attributes
ref_auto_completer=AJAXTableCompleter,ref_ac_columns=u_group_approvers,ref_ac_columns_search=true
2.) Log-out, Log-in and clear cache using cache.do in app navigator as
Reference - https://community.servicenow.com/community?id=community_question&sys_id=0aa871f3db1ddc14feb1a851ca96...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2022 12:25 AM
Hi Sai,
Thanks for your suggestions and community reference,
I had cleared my cache and updated the variable attributes along with an additional change of marking u_name as display = false
I am still seeing both u_name and group approvers in reference list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2022 12:36 AM
I believe There's only one option you have to set the u_name display value to false in the dictionary record if you do that it will impact all the u_name referenced fields
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2022 10:49 PM
Hi,
the field which is set as Display=true will be shown along with other fields if you wish to do so.
you cannot remove that display field using ref_ac_display_value=false
I tried it earlier and it didn't work for me
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader