Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Autocomplete onChange executes twice



onChange events are configured in the Actions tab of an Autocomplete control. On selecting data from the Autocomplete control the first time, the onChange event executes once. However, the second time, on selecting an entry, the onChange event executes twice. 

Error Messages

Not Applicable

Steps to Reproduce

  1. Configure an Autocomplete control in a section. 
  2. Add a few onChange events in the Actions tab of the Autocomplete control.
  3. Select data in the field using the Enter Key (on the keyboard). The onChange event executes once. 
  4. Delete the selected data using the keyboard. 
  5. Select data using the Enter key. The onChange event executes twice. 

Root Cause

A defect in Pegasystems’ code or rules. 
When the user deletes the autocomplete value and selects another value using the Enter key, the onChange event triggers and its corresponding configured actions are executed. Additionally, in the Refresh section callback in the processinlinescripts(), the data-change on the stale Document Object Model (DOM) is executed resulting in another onChange event.


This feature is implemented in Pega Platform 8.3.2.

Published October 2, 2020 - Updated December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us