3 users online. Create an account or sign in to join them.Users

Search

I needed to provide autocomplete (or whatever you want to call it) for some Select Box Link and Bi-Link fields. I came across this solution which utilizes JQuery.

Things worked beautifully for the Bi-Link field but I had to modify the Select Box Link so that it provided options without optgroup.

I like how simple it is and the fact that I could just add a layer on top of everything to get it to work. Maybe I’ll brush up on my JavaScript and see if I can make it work with optgroup so that the Select Box Link stays untouched.

I know someone created a specific autocomplete field but I like how this could be applied to any select.

Attachments:
select-autocomplete.png

Nice. The issue with this approach is that it requires you to spit out all the options into the markup, which is less than ideal. Once the REST API extension is complete and stable, it’d be really nice to develop some asynchronous autocomplete functionality for these types of fields.

That will be brilliant Craig! This is the best solution I can come up with at the moment. It’s a lot shorter waiting for 2000 options (x two fields) to load than it is to try to find a name by scanning the drop-down.

It’s a lot shorter waiting for 2000 options (x two fields) to load than it is to try to find a name by scanning the drop-down.

But then when you find it it’s like winning a treasure hunt!

But then when you find it it’s like winning a treasure hunt!

My boss does not find the funny. Us geeks are a rare breed! :-)

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details