When viewing a request item that has the list collector variable on the form, you are prompted that you have made a change when leaving/reloading the page. This also occurs on other forms with the variable editor.

This is a regression in UI15 and list collector variables. If a list collector variable is on a form, changeFlag is true, and the system interprets this as something on the form being changed.

Steps to Reproduce

  1. Go to sc_cat_item.
  2. Open the record where Name is Apple iPhone 5.
  3. Scroll down to the Variables Related list.
  4. Create a new variable with the information below:
    Type: List Collector
    Question: Who are you?
    Name: user
    List table: sys_user
  5. Go to the Apple iPhone catalog item and click Try it.
  6. Click Order Now.
  7. Click the sc_request Request Number, scroll down, and open the corresponding sc_req_item record.
  8. Reload the form. The Confirm Navigation Changes have been made... browser dialog box prompts you for confirmation to leave the page.


Note: The issue has been fixed in Fuji Patch 5

Create an onLoad Client Script on Request Item (sc_req_item) or any other form that has a variable editor. Use the code below:

function onLoad() {
    if (typeof g_sc_form !== 'undefined') {
        g_sc_form.fieldChanged = function(variableName, changeFlag) {
            if (g_form && g_form !== this)
                g_form.fieldChanged(variableName, changeFlag);
            this.modified = true;

Related Problem: PRB628088

Seen In

Eureka Patch 2
Fuji Patch 1
Fuji Patch 11
Fuji Patch 2 Hot Fix 1
Fuji Patch 3
Fuji Patch 8

Fixed In

Fuji Patch 5

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2016-03-21 15:27:16