SPAutoComplete behavior

Sep 9, 2010 at 3:18 PM

I want to use the SPAutoComplete on multiple fields in the form but for some reason all of my results are returned to the first form field. My code is as follows:

<script type="text/javascript" language="javascript" src="/_layouts/jquery/jquery.SPServices.min.js"></script>
<script type="text/javascript" language="javascript">
$(document).ready(function(){


$().SPServices.SPAutocomplete({
  sourceList: "Cases",
  sourceColumn: "Case_x0020_Number",
  columnName: "Case Number",
  numChars: 0,
  ignoreCase: true,
  slideDownSpeed: "fast",
  processingIndicator: "<img src='_layouts/images/REFRESH.GIF'/>",
  debug: false
 });
 
 $().SPServices.SPAutocomplete({
  sourceList: "{CC9E2915-9B6A-4E9A-9BC8-3B036EA2A53B}",
  sourceColumn: "Name",
  columnName: "Name",
  numChars: 0,
  ignoreCase: true,
  slideDownSpeed: "fast",
  processingIndicator: "<img src='_layouts/images/REFRESH.GIF'/>",
  debug: false
 });

});
</script>

Again, I don't have a problem accessing the different lists but results are only displayed in the Case Number column. Is it me?

Thanks

Marcus

Coordinator
Sep 10, 2010 at 4:09 AM

Marcus:

I've checked the function and it *ought* to work correctly in your example above. Try setting debug to true and see if anything pops up.

M.