Reference qualifier should work only when dependent field is not empty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2022 05:17 AM
Hi,
When I select an Assignment group, only members who belong to that group should show up in the 'Assigned to' field.
When I don't select any Assignment group and try to select an user in Assigned to all users in the system should shown up.
I have used reference qualifier in Assigned to field to achieve this. It is working fine when I select Assignment group.
But When I open Assigned to field without giving Assignment group, no users are shown this time.
Is there any way to make reference qualifier work only when Assignment group field is not empty?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2022 12:33 PM
Hi, if you share the details of your reference qualifier then the forum would be in a better position to understand your configuration, if you are using advanced refqualifier\javascript to set your filterthen you should be able to encapsulate in an if clause perhaps try something like.
if(yourReferenceField != '') {
//run your refqual code
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2022 02:38 PM
docs.servicenow.com/bundle/sandiego-platform-administration/page/script/server-scripting/concept/c_ReferenceQualifiers.html