I have a list called Store List. On one of the columns that is a dropdown, i'm trying to make a search field at the top, so the user doesn't have to scroll through hundreds of stores. After much research this doesn't seem very feasible except using external files-something like chosen.jquery.js, which is what I'm attempting. The code is what I found off one of the archives ($(SPUtility.GetSPFieldByInternalName('Stores').Controls).find('select').chosen({width: "300px"}). Stores is the name of the field that i'm trying to create the dropdown on. When i load this in the Content Editor nothing happens. Could someone please help with a solution? I've set up the html file that I reference in the Content Web Editor as follows:
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src ="https://workspace.web.att.com/sites/Cricket/Shared%20Documents/chosen.jquery.js" type="text/javascript"> </script>
<script src = "https://workspace.web.att.com/sites/Cricket/Shared%20Documents/sputility.css" type ="text/javascript"> </script>
<script type="text/javascript">
$(document).ready(function(){ $(SPUtility.GetSPFieldByInternalName('Stores').Controls).find('select').chosen({width: "300px"})</script>;
script-link
points tosputility.css
notsputility.js
. Also note that sputility is not longer maintained.