Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

How to detect if Now Assist popup is already open in onchange Client Script to prevent multiple pops

Amit Naik1
Tera Contributor

Hi everyone,

I’m working on a requirement in ServiceNow where an onChange Client Script triggers a confirmation popup. However, in some scenarios, the Now Assist popup (OOTB) is already open at the same time.

This leads to multiple popups being displayed simultaneously, which impacts the user experience.

Requirement:
Before triggering the confirmation popup in the onChange Client Script, I want to check if the Now Assist popup is already open. If it is open, the confirmation popup should NOT be triggered.

Ask:

  • Is there a way to detect if a specific popup (like Now Assist) is already open on the form?

  • Are there any APIs, DOM checks, or best practices to handle/prevent multiple popups in Client Scripts?

  • Has anyone handled a similar scenario?

Any guidance or suggestions would be really helpful.

Thanks in advance!

0 REPLIES 0