- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 11:12 PM
Hi, I want to hide widget if logged in user country is germany.
Can community will contribute in my post to complete this requiremet.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2025 05:45 AM
You can just activate user criteria for Service Portal plugin and enable the system property to use user criteria for portal.
Then you will be able to apply user criteria to widget based on location.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 11:21 PM
What kind of widget? You are in the AI Platform section, so that doesn't help in knowing if you are on the portal or creating dashboards or even at some other place of the platform. Without knowing what you exactly are doing, we can only guess and that gives way to many options.
One solution could be: use user criteria. But it could also be completely wrong, because your widget isn't connected to user criteria. So please provide more information.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 11:29 PM
please share some screenshots for your question
what's your actual business requirement
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-21-2025 04:18 AM
i know there is nothing in HTML, it means can't we hide the widget basis on user location?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 11:33 PM
@Ankur Bawiskar @Mark Manders
its web chat widget [aavamo]
I wrote below code in server side
var locationId = gs.getUser().getLocation();
I am getting country in logs. but no idea how to hide that widget