I’m using repeaters to set up a predictive but can’t quite get the interaction to work. At the moment, when you start typing the suggestions appear but after that, the entire list reveals and stays on the page. I want it to only show the suggestions when a user types 1 or more letters.
You have a space in the field after “does not equal.” Remove the space and it works.
Note that you can get much better performance if you just set the filter once (filters stay in effect until you delete them), applying the filter OnLoad in the repeater. You can also add a second condition to your filter that will handle all of the showing and hiding for you, so you won’t need to do that manually.
The second condition (after the &&, which is an AND) basically says “AND return no rows if the search field is blank”
Then you just need to force the repeater to re-evaluate the filter OnTextChange rather than apply the filter there. A good way to do this is to set (or actually, reset) its ItemsPerPage to Unlimited.
Now I am struggling with the styling - why am I unable to edit the width?
Also, in my prototype I have it placed inside a Dynamic panel (state 1) but I want the autosuggest drop down to show outside of the panel. For example, if you try to enter Cardiff, the drop down cuts offUni TT tabs only.rp (98.3 KB)
If you right-click this dynamic panel and choose “fit to content” it will grow to its contents automatically. You’ll want to make your repeater row the same width as the entry field in that case, I’m guessing.
Note that if you ever manually resize (while authoring) a fit-to-content dynamic panel, Axure will turn the fit-to-content setting OFF.