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.
Request Extension button on Policy Exception visible even after requesting extension - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • Request Extension button on Policy Exception visible even after requesting extension
KB0862416

Request Extension button on Policy Exception visible even after requesting extension


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

Description

Activating scoped application "GRC: Policy and Compliance Management" users are able to see the request Extension button on Policy Exception form at the bottom of the form page even after requesting extension, until you refresh the page.

Steps to Reproduce

1. Install Policy and Compliance Plugin
2. Navigate to 'My Policy Exceptions'
3. Click on New
4. Fill in mandatory fields and save
5. Click on 'Request Approval'
6. Fill in mandatory fields (Approver, Risk rating) and Save
7. Click on 'Approve'
8. Click 'Request Extension', set a date for extension and click 'Request'
9. NOTE: Do not refresh the page !!!!
10. Scroll down and you will see that the 'Request Extension' UI action is still available at the bottom of the form (though is not visible at the top of the page)

The user can repeatedly keep clicking the 'Request Extension' UI action at the bottom of the form page over and over again even though a request extension has already been raised.

Once you refresh the page the UI action at the bottom of the form is no longer visible.

Workaround

On click of request extension button present on the top right of the form, a request extension pop up appears. After entering the valid date and requesting extension, the Request extension button on the top right disappears but the Request extension button at the bottom is still present. This happens because on click of "add_extension" button on the pop up, the UI page calls the addExtension() function which checks whether the date provided is valid or not and if it is valid then the "Request Extension" UI action at the top is hidden, but here the code for hiding the bottom "Request Extension" button is missing. To fix the issue, please follow the below steps:

  1. Navigate to 'add_extention' UI Page on Policy Exception.
  2. Replace the below existing piece of code with the modified piece of code in the addExtension() function of the client script.

----------------- EXISTING SCRIPT ------------------

ajaxCall.getXMLAnswer(function(answer) {
        if(answer == 'true') {
            $j('#request_extension').hide();
            GlideDialogWindow.get().destroy();
        }

----------------- MODIFIED SCRIPT -----------------

ajaxCall.getXMLAnswer(function(answer) {
        if(answer == 'true') {
            $j('#request_extension').hide();
            $j('#request_extension_bottom').hide();
            GlideDialogWindow.get().destroy();
        }



Related Problem: PRB1436834

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.