- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2025 11:10 PM
How to remove a reference qualifier from field "b" if field "a"=true on scoped app? I'm trying to do it by onChange client script, which doesn't work.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2025 12:15 AM
then use this
javascript: var query = ''; if(current.fieldA.toString() = 'false') query = new My_All_Cases().filterByRegion(current.u_filtered_cases); query;
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2025 11:27 PM
you cannot update reference qualifier using onChange script
what's your actual business requirement? share some screenshots.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2025 12:10 AM - edited ‎05-27-2025 12:14 AM
Hi @Ankur Bawiskar ,
Field "a" is a true/false field.
Field "b" is a reference field to the "All Cases" table and there is a reference qualifier in field "b" that filters records based on the region of the logged in user: --- javascript: new My_All_Cases().filterByRegion(current.u_filtered_cases);
What I'm trying to do is that when field "a" is true, the reference qualifier will not apply.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2025 12:15 AM
then use this
javascript: var query = ''; if(current.fieldA.toString() = 'false') query = new My_All_Cases().filterByRegion(current.u_filtered_cases); query;
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2025 12:26 AM