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.
'Leave this Page'Prompt while closing browser tab without modifications - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • 'Leave this Page'Prompt while closing browser tab without modifications
KB0788376

'Leave this Page'Prompt while closing browser tab without modifications


962 Views Last updated : Apr 20, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

A message appears that you are leaving the page without saving the record prompts even if you just open the page and leave without making any interaction to it or just reloading the page.

Cause

'Leave this Page' prompt appears when a setValue() is passed on on-load via client scripts or UI policies OR a 'Clear a field Value' is check on UI policy action

Resolution

Check for onLoad Client scripts and UI policies Run scripts to see any setValue() is passed on load and comment setValue() and check for prompt appears or not on loading the record.

Similarly, check for UI policies executing on the affected record and open the UI policy actions under it. If 'Clear the field Value' is checked, every time the record loads whether value defined or not on the field, this check allows to clear the field value and this modification forces prompt to appear 'Changes you made may not be saved.'. Uncheck the 'Clear the field Value' field, this will fix the issue

 


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.