function loadOptionsList(){
  var htm = '<div class="slds-dropdown slds-dropdown_length-5 slds-dropdown_large slds-hide" role="listbox" style="left:75%">';
  htm += '<ul class="slds-listbox slds-listbox_vertical" role="presentation">';
  for (i = 0; i < array.items.data.length; i++) {
    htm += '<li role="presentation" class="slds-listbox__item">';
    htm += '  <div data-id="'+ array.items.data[i]._id +'" class="slds-media slds-listbox__option slds-listbox__option_plain slds-media_small" role="option">';
    htm += '    <span class="slds-media__body">';
    htm += '      <span class="slds-truncate" title="Name">'+ array.items.data[i].name +'</span>';
    htm += '    </span>';
    htm += '  </div>';
    htm += '</li>';
  }
  htm += '</ul>';
  htm += '</div>';
  $('#ucp-item-id').each(function() {
    $(this).parents('.slds-form-element__control').append(htm)
  })
}
// RM: New function to support creation auto-complete on Item Id field
New function to support creation auto-complete on Item Id field
New function to support creation auto - complete on Item Id field
function loadOptionsList(){
  var htm = '<div class="slds-dropdown slds-dropdown_length-5 slds-dropdown_large slds-hide" role="listbox" style="left:75%">';
  htm += '<ul class="slds-listbox slds-listbox_vertical" role="presentation">';
  for (i = 0; i < array.items.data.length; i++) {
    htm += '<li role="presentation" class="slds-listbox__item">';
    htm += '  <div data-id="'+ array.items.data[i]._id +'" class="slds-media slds-listbox__option slds-listbox__option_plain slds-media_small" role="option">';
    htm += '    <span class="slds-media__body">';
    htm += '      <span class="slds-truncate" title="Name">'+ array.items.data[i].name +'</span>';
    htm += '    </span>';
    htm += '  </div>';
    htm += '</li>';
  }
  htm += '</ul>';
  htm += '</div>';
  $('#ucp-item-id').each(function() {
    $(this).parents('.slds-form-element__control').append(htm)
  })
}
function loadOptionsList ( ) { var htm = '<div class="slds-dropdown slds-dropdown_length-5 slds-dropdown_large slds-hide" role="listbox" style="left:75%">' ; htm += '<ul class="slds-listbox slds-listbox_vertical" role="presentation">' ; for ( i = 0 ; i < array . items . data . length ; i ++ ) { htm += '<li role="presentation" class="slds-listbox__item">' ; htm += '  <div data-id="' + array . items . data [ i ] . _id + '" class="slds-media slds-listbox__option slds-listbox__option_plain slds-media_small" role="option">' ; htm += '    <span class="slds-media__body">' ; htm += '      <span class="slds-truncate" title="Name">' + array . items . data [ i ] . name + '</span>' ; htm += '    </span>' ; htm += '  </div>' ; htm += '</li>' ; } htm += '</ul>' ; htm += '</div>' ; $ ( '#ucp-item-id' ) . each ( function ( ) { $ ( this ) . parents ( '.slds-form-element__control' ) . append ( htm ) } ) }
RM: New function to support creation auto-complete on Item Id field
RM : New function to support creation auto - complete on Item Id field