The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How to hide "Live Chat" link in Service Portal header for specific user locations

aaksubraman
Tera Contributor

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.

 

1 REPLY 1

Shruti
Mega Sage
Mega Sage

Hi

Did you try to check the logs? Can you share screenshots of the widget?