Having an onLoad setValue client script causes the catalog item to have a "dirty form".

Steps to Reproduce


  1. Upload the two XML files attached to this problem record:

    • catalog_script_client_c7f83b95db5193003bacf8231f9619fb.xml
    • item_option_new_aa973f1ddb119300a1cff4a51f961976.xml

    This will add the Catalog client script "OnLoad openedby info" (/ and the variable "requestedFor" (/

    The XML will be added to the record producer Service Category Request (/

  2. Navigate to Self-Service > Service Catalog.

  3. Click on the "plus" icon (+) next to the Search catalog bar at the top right corner.

  4. For sections, navigate to Catalog categories > Departmental Services > Catalog Details & Category Items.

  5. Add both these items to the Service catalog.

  6. Impersonate the user System Administrator.

  7. Navigate back to Self-Service > Service Catalog and go to Department Services > Service Category Request.

    The catalog client script will add the user System Administrator to the Request For field.

  8. Click on any modules on the left side.

    You will be prompted with "Do you want to leave this site" because the form is a "dirty form" (one that enables users to attempt to leave a page without submitting a form they have entered data into).


The following line in the script:

g_form.modified = false after the setValue call

will prevent the dirty form from firing.

Related Problem: PRB1268040

Seen In

Kingston Patch 4

Fixed In

Kingston Patch 6 Hot Fix 3
Kingston Patch 8
London Patch 1

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-07-18 07:53:08