76
Views
5
Comments
Begin search after typing 3 characters
Application Type
Reactive

Hi team,

I'm using dropdownsearch widget in my application. I want the search to begin only after user enters 3 or more characters. Can anyone help to achieve this?


Thanks,

Gowtham

2024-01-20 14-53-12
Ahmed Essawy

yes this is doable using the Dropdown Server Side Pattern (click here to open the official documentation).


 

2023-10-30 06-03-17
Gowtham

Hi Ahmned,

I can't find it in the outsystemsUI module. Mine is a reactive application

2023-09-28 14-21-55
Daryna Kravets

Hi Gowtham,

What version of OutSystems UI do you use? This pattern was added in 2.14.0.  

2023-10-30 06-03-17
Gowtham

Thanks Daryan for your response

I'm using version 2.12. So that's the reason I'm not seeing this pattern

2023-04-13 07-10-08
Geertjan Jacobs

@Gowtham 

Easiest solution for normal search input is to check the length of your search variable (in this case SearchKeyword) in the OnSearch action with:

and only refresh your aggregate when the condition is True. Comparing to 0 makes sure the aggregate is refreshed when your SearchKeyword is cleared.

---

For the DropdownSearch widget this isn't easy anymore, because we were able to tweak the DropdownSearch in the past via the AdvancedFormat input. It is however still possible by triggering your own javascript with the correct configurations in the Initialized event:

https://www.outsystems.com/forums/discussion/84589/advanced-format-in-dropdown-search-in-outsystemsui-2-13-0/


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.