Virtual Agent Dynamic Choice Input
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2022 10:57 AM
Hello, I'm working a Virtual Agent flow with my team that involves the option to report an incident on behalf of another user, and I was wondering if anyone knew of a way to remove the selections beneath entirely and leave just the search utility, effectively making it so no records show up until the user actually clicks the magnifying glass. Can this be done, or would it be best to use a different method entirely?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2024 01:45 AM
Yes, it is possible to achieve this in ServiceNow. Here are the steps you need to follow:
1. Navigate to the sys_user table in your instance.
2. Open the dictionary record for the 'name' field.
3. In the 'Attributes' field, add the following attribute: ref_ac_columns_search=true
4. Save the record.
This attribute will make it so that no records show up until the user actually clicks the magnifying glass.
Here is a sample code snippet:
javascript
function onLoad() {
//Type appropriate comment here, and begin script below
var nameField = g_form.getGlideUIElement('name');
nameField.setAttributes('ref_ac_columns_search=true');
}
Please note that this will affect all reference fields that point to the 'name' field in the sys_user table. If you want to apply this change to a specific reference field, you will need to create a new field with these attributes.
Also, keep in mind that this change will affect the user experience, as users will need to click the magnifying glass to search for records, instead of seeing a list of records by default.
nowKB.com
If you want to know any information about Service Now . Visit to https://nowkb.com/home