How to Hide Virtual Agent Chat on Specific Pages in ServiceNow Mobile App?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2025 04:25 AM
Hi Everyone,
I'm working on a ServiceNow Mobile App and need help with conditionally hiding the Virtual Agent chat (configured as a Quick Action on the Launch Screen).
I want to hide the chat only on two specific pages:
- knowledge_mobile_home
- kb_article_view_mobile
I tried using a function condition like this:
GlideMobilePage.getPageName() != 'knowledge_mobile_home' && GlideMobilePage.getPageName() != 'kb_article_view_mobile'
But it didn’t work — the chat still appears on those pages.
I also checked that the chat is configured via a Quick Action on the Launchpad, not as a widget on the page itself. Page Specific CSS also didn't worked. Is there a better way to conditionally hide the chat on specific screens?
Any guidance or examples would be greatly appreciated!
Thanks in advance!