Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
A mysterious popup appears on the form. - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • A mysterious popup appears on the form.
KB0779304

A mysterious popup appears on the form.


611 Views Last updated : Apr 8, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

There has been occasions where a mysterious pop up will inexplicably appear on a form. This may happen on form load or after a sur makes an update. The situation may vary. The popup will not interfere with the actions of the users but it causes confusion.

Cause

Developers add Javascript alert messages while developing for debugging purposes. And sometimes they forget to take out the alerts. This will cause a popup to appear to the users causing confusion of the errors was something they did.

Resolution

To solve the issue you can:

1. Open the console tab and enter the following to the console tab:

var old = alert;

alert = function() {
console.log(new Error().stack);
old.apply(window, arguments);
};

 

2. Now try and replicate the issue.

this should throw the stack error in the console and it should have some hints as to which script caused this issue and it should look something like this:

Error
at alert (<anonymous>:4:15)
at validateSizeandExt (eval at evalScript (js_includes_doctype.jsx?v=08-12-2019_1850&lp=Sun_Sep_15_11_40_44_PDT_2019&c=19_391:84), <anonymous>:172:2)
at checkAndSetAttachButton (eval at evalScript (js_includes_doctype.jsx?v=08-12-2019_1850&lp=Sun_Sep_15_11_40_44_PDT_2019&c=19_391:84), <anonymous>:159:24)
at HTMLInputElement.onchange (change_request.do?sys_id=c83c5e5347c12200e0ef563dbb9a7190&sysparm_record_target=change_request&sysparm_record_row=5&sysparm_record_rows=153&sysparm_record_list=ORDERBYDESCnumber:1)

 

3. Now you can go look for the term "validateSizeandExt" and test if the alert in this function is the one with the issue. You can do so by commenting out the alert in the function and then trying to replicate. If the issue is not replicable then you now this is the alert causing the issues.

 

Related Links

https://stackoverflow.com/questions/7808665/how-to-find-out-where-the-alert-is-raised-from


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.