X
Tap here to go to the mobile version of the site.

Support Forum

Search items in drop down LIKE "%xyz%"

Posted

Hi, In website's drop down lists (HTML select elements), I know you can "go to first item starting with xyz" by typing xyz.

But is there a way to go to first item that contains xyz?

For instance, if I have a long drop down list (HTML select) with the name of the countries, I can hightlight "France" by typing "Fra". Can I highlight it by typing something like "ance"? If not, I guess I should open a bugzilla ticket.

My actual usecase is that the select values are not starting with the country names, but starting with special characters " » France", and the number of spaces before the quotes may vary.

Hi, In website's drop down lists (HTML select elements), I know you can "go to first item starting with xyz" by typing xyz. But is there a way to go to first item that contains xyz? For instance, if I have a long drop down list (HTML select) with the name of the countries, I can hightlight "France" by typing "Fra". Can I highlight it by typing something like "ance"? If not, I guess I should open a bugzilla ticket. My actual usecase is that the select values are not starting with the country names, but starting with special characters " » France", and the number of spaces before the quotes may vary.

Chosen solution

You have to enter about:config in the URL bar and set dom.forms.selectSearch = true. It adds ability to filter long drop down lists.

Read this answer in context 1
Quote

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0

More Information

TyDraniu
  • Top 25 Contributor
284 solutions 1592 answers

Chosen Solution

You have to enter about:config in the URL bar and set dom.forms.selectSearch = true. It adds ability to filter long drop down lists.

You have to enter ''about:config'' in the URL bar and set ''dom.forms.selectSearch'' = '''true'''. It adds ability to filter long drop down lists.
Was this helpful to you? 1
Quote

Question owner

Wow, this is very neat! Thanks!

Why isn't this option activated by default (maybe with another preference to show it only for select with more than N options)?

(Maybe I should ask that on bugzilla then, please tell me if so)

Wow, this is very neat! Thanks! Why isn't this option activated by default (maybe with another preference to show it only for select with more than N options)? (Maybe I should ask that on bugzilla then, please tell me if so)
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.