Repeater autosuggest highlight search term in grouped lists

advanced-prototyping

#1

Hi Axure Experts,
I read all the posts regarding autosuggest but have not found a suggestion for this one.
Please see attached file. I have mocked up my repeater items to filter when I click “Search” button. What I need help with is, how do I highlight the search term when showing results? The search term can be at the beginning or middle of an item. For example, if you type in “MN”, you should see “456 MNO” with “MN” bolded. Or if you type in “23”, you should see “1 23 ABC, 1 23 JKL”.
Your expertise is appreciated!

search.rp (62.5 KB)

Thank you!
Jenny


#2

There’s actually examples of that on the forums here:

Also check out Jane’s follow up reply down the thread for a more detailed breakout of the example file referenced.


#3

Hi Sifu nkrisc,
I followed your instructions and mock this up. Do you know why the entire line is bolded?

search.rp (63.4 KB)

Thanks!


#4

Because you had LVAR1 set to “Text on widget” when the expression already included “LVAR1.text” so that was redundant. Either replace “LVAR1.text” with just “LVAR1” in the expression, or (more simply) change “Text on Widget” to just “Widget” in the local variable settings.

I recommend the latter. It should work fine then.


#5

Thank you Sifu nkrisc, You are great! Thank you for toubleshooting it for me.

This is more challenging.

group search.rp (84.0 KB)

What if the results are grouped under headers? What would you do to make the filter only filtering and bolding the non-headers? See attached.

When you type in “Kids” or “Youth”, right now it is filtering each header and bolding it. I would like to keep the header static and filter only the list under the header. Also, do not show header if there is no result under it.

Thank you Sifu!