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

Multiple Issues in AutoComplete control

SA-74123

Summary



The below issues occur with the autocomplete field:
  1. Results are not fetched despite the availability of the searched string on the Clipboard.
  2. The onChange event is not triggered on selecting an item using the mouse or on tab out.
  3. Items with text such as 'back', '&', and 'reset' are either not displayed or the onChange event is not triggered.


Error Messages



Not Applicable


Steps to Reproduce

  1. Create an autocomplete field.
  2. On change of the autocomplete, trigger a refresh section and run a data transform.
  3. In the data transform, populate another dropdown based on the selected value of the autocomplete After changing the values in autocomplete, texts such as, 'back', '&', and 'reset' do not populate the value in the other dropdown


Root Cause



A software use or operation error.
A data transform was present which populated the value of another dropdown based on the autocomplete field's selected value. Post the update, a different property was configured in the autocomplete fields Display value. As a result, the data transformation logic failed. Hence, the data did not display in the dropdown.


Resolution



Perform the following local-change:

Select the required property from the page in the autocomplete control which is referred in the data transformation logic.

For example, the data transform logic is written to obtain the index of a selected value as,

@Utilities.IndexInPageList(@trim(.keyword),ContentSource,ContactReasonSmartPrompt.pxResults)

When the keyword property is used in the autocomplete, the property must match with the ContentSource property; else,  the output of above function is returned as -1.

Published August 19, 2019 - Updated October 8, 2020

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