code: function (suggestion, selectionOptions) {
          var that = this,
              formatSelected = that.options.formatSelected || that.type.formatSelected,
              hasSameValues = selectionOptions && selectionOptions.hasSameValues,
              hasBeenEnriched = selectionOptions && selectionOptions.hasBeenEnriched,
              formattedValue,
              typeFormattedValue = null;
  
  
          if ($.isFunction(formatSelected)) {
              formattedValue = formatSelected.call(that, suggestion);
          }
  
          if (typeof formattedValue !== 'string') {
              formattedValue = suggestion.value;
  
              if (that.type.getSuggestionValue) {
                  typeFormattedValue = that.type.getSuggestionValue(that, {
                      suggestion: suggestion,
                      hasSameValues: hasSameValues,
                      hasBeenEnriched: hasBeenEnriched,
                  });
  
                  if (typeFormattedValue !== null) {
                      formattedValue = typeFormattedValue;
                  }
              }
          }
  
          return formattedValue;
      }
docs: Gets string to set as input value
  
  @param suggestion
  @param {Object} [selectionOptions]
  @param {boolean} selectionOptions.hasBeenEnriched
  @param {boolean} selectionOptions.hasSameValues
  @return {string}