Support Article
pxAutoComplete control does not fire OnChange events
SA-15573
Summary
User reported that the pxAutoComplete control does not fire OnChange events when the control returns zero result, and the user uses the tab key to navigate to the next field.
The OnChange event fires when the control returns zero result and also when the user navigates to the next field by clicking on the field with the mouse.
The OnChange event always fires if the users tabs or clicks onto the next field, if the control returns any results.
Error Messages
Not Applicable.
Steps to Reproduce
- Create a Repeating Grid Layout and include Autocomplete control in two adjacent cells.
- In the Autocomplete control include a property with local list.
- In each of the cell properties, add an action set with event “Change” and action “Refresh Section”
Root Cause
‘p.c.eventController.SetLazyOnChange(targetElement,”false”); ’ was commented in pzpega_control_autocompleteag

Resolution
Uncomment ‘p.c.eventController.SetLazyOnChange(targetElement,”false”);’ and change it to ‘p.c.eventController.SetLazyOnChange(targetElement,”false”,false);’ .

The reported issue is also fixed in Pega 7.1.9.
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.