Jump to content
  • 0
Sign in to follow this  
davidhshugar

Not Selecting The First Item of a Autocomplete Field When Pressing Enter

Question

Hello,

I am using a submission form with an autocomplete field. A problem that users are running into is that when they type in text and press "enter", the first item of the autocomplete menu is submitted instead of whatever text they have typed in. If the mouse is moved over another item of the autocomplete dropdown and "enter" is pressed or the mouse if clicked, that item will be selected - which works well.  But... is possible to not automatically highlight the first item of the autocomplete field so that if "enter" is pressed, the text they have typed in will be submitted, instead of the first item of the autocomplete field?

-David 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

In case you can search for partial results, you shouldn't automatically autocomplete the field, as the user might just wanted to search for the substring he entered (in the above case he wanted everything starting with AB). For this you probably have a combobox style widget, where you can enter any string, or choose from a list.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...