Drowdown search is searching also from ID field
Application Type
Reactive
Service Studio Version
11.11.13 (Build 47944)

Hi

I have a dropdown search widget. I am using it to select a company from a list of about 100 rows. Every company has an internal company number. Search condition seems to search also from that Company entity's ID field. For example if i type "82" for searching the company number 82 there are two results as you can see from the image below.

The reason why that company 233 is on the search results is that it's ID in the entity is 13282, so it is including "82".

How can I set the widget NOT to search from the ID field?

Jussi

mvp_badge
MVP
Solution

Hi Jussi,

Include the below-mentioned definition in the AdvancedFormat property of the DropdowSearch widget, and it will work as you mentioned.

AdvancedFormat Value:

"{
    searchFields: ['label']
}
"


For more info:  https://github.com/Choices-js/Choices#searchfields


I hope this helps you!


Kind regards,

Benjith Sam

Hi Benjith

Thank you, that works!

Jussi

mvp_badge
MVP

You're welcome, Jussi,

Glad to help you :)


Kind regards,

Benjith Sam

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