Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Select item in opened drop-down list based on user entry

Avatar

Level 9

I am using JavaScript to open a drop-down list of names during the enter event.

xfa.host.openList("this");

When the user enters the first few letters of the person's first name and only one name remains in the list, I want that name to be selected and populate that drop-down field when the user tabs out. I know the user could arrow down to their choice and then tab out but they prefer it to work the way I described. Is there a way to script that when only one item remains displayed and the user tabs out, that item is selected?

Thank you

0 Replies