How to Hide Virtual Agent Chat on Specific Pages in ServiceNow Mobile App?

Saraswathi Devi
Tera Contributor

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!

 

 

0 REPLIES 0