Can Low Search be used to create autofill search form? How?
I'd like to use Low Search to create a Google style search autofill search form and I'm wondering if this has been done, if there might be an example or instructions or tutorial somewhere?
Thanks
Replies
Low 1 Jun 2012 09:22
Hi Peeter,
Sorry, there aren't any scripts/tags in place to just drop this in and go. It probably could be done, but there's no tutorials around for that.
To elaborate, what exactly would you be autofilling? Suggested search terms like Google does, or something else?
Peeter 1 Jun 2012 16:21
Hi,
I'm using the search module to search exact titles of entries. Since many of the titles my users will search already exist, I'd like to autofill as they type to show them that the title already exists making it easier for them.
So essentially a drop-down from the search field showing similar results until the exact one is found.
There is this autocomplete tutorial specifically for the EE search module but I'm not sure it can be adapted to your search module, also, it's clunky and I'm not sure I'd use it anyway.
http://linssen.me/entry/expressioneng...
BTW, I bought the module yesterday and think it's great, love it.
Peeter 1 Jun 2012 17:20
Me again,
Here is the jquery widget which does it and an example of it being used:
http://jqueryui.com/demos/autocomplete/
http://isawyou.com (home page location field)
Integrating this with the LowSeach Module is WAY over my head (to make it dynamic) but would be a great feature to have. Please consider this a feature request. Thanks!
Low 1 Jun 2012 18:31
Hi Peeter, I'll look into it a bit and report back about whether or not this is something to implement.
Peeter 12 Jun 2012 18:21
Hi, I'm curious if you've been able to look into this? I'm trying to plan out some features and autocomplete figures into how I might make some other stuff work so just wanted to get an update to see what you're thinking about this...
Thanks
Low 12 Jun 2012 18:45
Hi Peeter, I haven't yet, but I can tell you that any advanced front-end solutions like Ajax-ified search options are not on my priority list at the moment. My policy is that the add-on needs to be front-end agnostic, so it doesn't require jQuery, MooTools or any other front-end framework.
Peeter 12 Jun 2012 19:46
Ok, thanks for the info. I hope you reconsider in the future. Front end frameworks have become such an integral part of web development it seems like a natural for an add-on such as Search to offer this type of functionality out of the box.
Otherwise your module is working great for us and I'm happy we got it.
Ever Daniel Barreto Rojas 27 Oct 2013 19:55
Hi,
I'm just posting this here just in case someone else needs to do the same:
https://gist.github.com/everdaniel/71...
The template above will return the results as JSON, from there, you only need to work on the autocomplete part based on what Javascript framework you're using (jQuery, MooTools, etc.).
Thanks.