How to hide "Live Chat" link in Service Portal header for specific user locations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
We have a requirement to hide the Live Chat option in the Service Portal header for users in restricted locations (e.g., Hungary/Budapest).
Cloned Stock Header widget → created Stock Header – Custom.
Updated HTML (line 27) to include !data.isHungaryUser condition.
Added client script to hide Live Chat for Hungary users.
Updated server script to check sys_user.location and set data.isHungaryUser.
Added debug logs confirming correct location detection.
Updated the Stock theme with the custom header and confirmed it’s applied.
Issue:
Despite these changes, Hungary/Budapest users are still seeing the Live Chat option in the portal header.
Question:
Is there a recommended approach to enforce conditional visibility of the Live Chat option in the Stock Header widget based on user location?
Am I missing any specific configuration step to make the widget condition apply?
Any guidance or best practices would be greatly appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi
Did you try to check the logs? Can you share screenshots of the widget?