hide global option from region variable lookup selet box when le group is data privacy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2024 12:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 01:15 AM - edited 10-15-2024 01:17 AM
Hello @shubhamverm3478 & @Community Alums ,
I suggest trying the following reference qualifier for your use case:
javascript: if (current.variables.group == '457aa799db49d740d27a00b5ca9619de') { "sys_id!=e37c2dfb1be49ad47b03ea8a234bcbfd"; } else { "active=true"; }
This should conditionally hide the Global option in the region lookup select box when the group variable is set to Data Privacy.
Note: Please replace the sys_id values with the corresponding ones from your instance. Specifically, update the group sys_id and the region sys_id for the Global option, as they may differ in your system.
Let me know if you have any questions or if this doesn’t work as expected.
Please Mark ✅Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.
Regards,
Aniket
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 02:33 AM
Appreciate your answer but isn't it the same approach I suggested?
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 01:30 AM
Its still visible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 01:52 AM
Hello @Community Alums ,
Please share few screenshots of both variables, and let's see what's missing, because I have tested the same functionality from my side and it's working as expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 01:58 AM