Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

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