Limiting Number of Autocomplete Prompts

You could use CSS to hide results like so (you can also change the li selector to be a specific class if there are other list items you don’t want to hide):

// show first 5 results only
.yxt-AutoComplete-results li:nth-child(n+6)
{ 
    display: none
}

Before and after:

1 Like