When a client script calls g_form.clearValue on a select Box or Yes/No variable, a change is detected and triggers any onChange client scripts for that field even though the value does not change.

Steps to Reproduce

  1. Create a new Catalog item
  2. Create a variable of type checkbox named field1
  3. Create a Variable of type Yes/No named field2
  4. Create an onChange client script for when field1 (the checkbox) changes with this line of code added.
    • g_form.clearValue('field2');
  5. Create an OnChange client script for when field2 change with this line added.
    • g_form.addErrorMessage("Field 2 has changed");

Try the item and notice when the box is checked, the error message is displayed. Therefore, onChange client scripts for the field are being triggered, when doing a g_form.clearValue.


This is a regression in Jakarta and does not happen in Istanbul.

As a workaround on early Jakarta instances, use Include None under Type Specification for the variable of type Yes|No or Select Box where this issue occurs. 




Related Problem: PRB1194586

Seen In

Jakarta Patch 3

Fixed In

Jakarta Patch 4 Hot Fix 1
Jakarta Patch 7
Kingston Patch 1

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-05-21 11:38:12