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.
g_form.modified does not work in agent workspace - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • g_form.modified does not work in agent workspace
KB0830979

g_form.modified does not work in agent workspace


1647 Views Last updated : Jun 20, 2024 public Copy Permalink
KB Summary by Now Assist

Description

g_form.modified does not work in agent workspace

Steps to Reproduce

1. Go to any Madrid Patch 4.
2. Go to UI Action resolve on table incident
3. Put a condition like below in line number 2 in script section
if(g_form.modified){
alert(g_form.modified + " Platform ");
4. Put the same condition in Workspace client script
5. Now go to any open incident record and change anyhting on the form (like short description)
6. click on the ui action resolve.
7. Notice that the alert comes up
8. Do the same step in agent workspace and notice that there is no alert coming up.

P.S : I have created a small video for more detailed information.

This is still valid for Orlando.

Workaround


At this time there is no exposed APIs on g_form to check if the form has been modified. This is on purpose. Please open a feature request with product management to request the addition of this API.

This problem needs to be addressed in a future version.


Related Problem: PRB1352275

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.