Does Squiz Matrix support datalist?


(Ryan Archer) #1

Looking for an alternative to a huge dropdown 'option' list with approx 70 entries.

Seen a smart way to do it with the HTML5 datalist element.

 

Does Squiz Matrix support this?


(Bart Banda) #2

Not really supported from the backend, but it would be easy to use a select field and rewrite it on the front end with some JS based on a class that you add to the select field in the config on the backend.

 

There are also heaps of JS plugins out there that can apply the datalist type functionality to select fields: http://www.jqueryrain.com/demo/jquery-selectbox-plugin/  

 

In saying that, I've added a feature request for it to our roadmap to get it added at some point: https://squizmap.squiz.net/matrix/7649 


(Ryan Archer) #3

Thanks Bart. I ended up using a JQuery Autocomplete implementation https://jqueryui.com/autocomplete/

Unfortunately we still need to support older browsers (IE8) so the datalist would not have worked out anyway.

 

Jquery solution works out great!