I spent some time looking up options for an autocomplete or searchable field on a form and decided to go with Anton Khritonenkov's instructions (http://www.codeproject.com/Articles/637675/Multiple-form-fields-autocomplete-for-SharePoint) on implementing a JavaScript solution.
I followed up until "Internal implementation of the plugin." I have yet to get it to work and believe I might be missing something. I have little experience working with JavaScript and jQuery so I may be missing something completely obvious. Below is the code I implemented into my NewForm.aspx in SharePoint Designer. I uploaded the necessary files to my Styles Library. Also, I put the actual url in place of "~sitecollection" just removed it here for privacy reasons. I included the last tag to better show the location of code in document.
<asp:Content ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server">
<SharePoint:DelegateControl runat="server" ControlId="FormCustomRedirectControl" AllowMultipleControls="true"/>
<SharePoint:UIVersionedContent UIVersion="4" runat="server"><ContentTemplate>
<SharePoint:CssRegistration Name="forms.css" runat="server"/>
</ContentTemplate></SharePoint:UIVersionedContent>
<SharePoint:ScriptLink runat="server"
Name="~sitecollection/Style Library/jquery.min.js" Language="javascript"/>
<SharePoint:ScriptLink runat="server"
Name="~sitecollection/Style Library/jquery.SPServices.min.js" Language="javascript"/>
<SharePoint:ScriptLink runat="server"
Name="~sitecollection/TerritoryManagement/Style Library/jquery-ui-1.10.3/jquery-ui-1.10.3.custom.
min.js" Language="javascript"/>
<SharePoint:ScriptLink runat="server"
Name="~sitecollection/Style Library/jquery.plumFormAutocomplete.js" Language="javascript"/>
<SharePoint:CSSRegistration name="<% $SPUrl:~sitecollection/Style Library/
jquery-ui-1.10.3/css/smoothness/jquery-ui-1.10.3.custom.min.css%>" runat="server"/>
<script type="text/javascipt">
$(document).ready(function()
{
//get control for autocomplete field
var fieldControl = $.getFieldControl('Account');
//call autocomplete plugin for field control
fieldControl.plumFormAutocomplete({
sourceList: 'Accounts',
sourceMatchField: 'Account Name',
fieldsMapping: [{sourceField:'Account Name', targetField: 'Account'}]
});
}
</script>
I need this functionality because I am using a Lookup Column that will have a user choose from a vast number of accounts (hundreds) and I would really like to not have users scrolling through all the options. If you have a suggestion other than the one above I am open to it.
I run SharePoint 2013 Online and have SharePoint Designer 2013.
Thank you in advance for any feedback any of you may have.