Question
Maven
US
Last activity: 5 May 2021 10:49 EDT
How to avoid API calls for each key stroke - AutoComplete control
I have an auto complete configured with Data Page as source. I am calling Address API with in the data page and displaying the addresses in auto complete.
Problem here is, API is being called for each key stroke. For example: If address entered is 123 ABC Drive, autocomplete feature is causing the API to trigger for 1, 12, 123, 123 A, 123 AB and 123 ABC. I do not want to call API so many times like this. I want to call API only when user pauses.
I tried minimum character limit feature, but it's calling API for each character after minimum character limit.
Please help me find a way to achieve this.