Oracle APEX Autocomplete is a mechanism commonly used in modern websites to provide the user with a list of suggested words that they have typed in a text box. The user can then select an item from the list displayed in the input field. This feature saves the user from having to type an entire word or a series of words. In this article, you will learn how to dynamically retrieve the selected value for autocomplete in Oracle APEX.
Create a Oracle dynamic action
- Name: getselectedValue
- Event: select
- Item(s): choose your autocomplete Page Item
- Event Scope: static
- Action: Execute Javascript Code
- Code: console.log(apex.item(this.triggeringElement.id).getValue())
- Fire on Initialization : No