When you populate the autocomplete, you simply add the attribute you wish to retrieve after in the object coming from response, using the attribute values coming from the JSON obj for example:
source: function( request, response ) {
$.ajax({
url: '@Url.Content("~/Home/SearchVisitor")/',
type: 'POST',
contentType: 'application/json',
dataType: "json",
data: JSON.stringify(
{
fathersLast: "",
mothersLast: "",
firstName: ""
}),
success: function( data ) {
response( $.map( data.results, function( item ) {
return {
label: item.FathersLast + " " + item.MothersLast + ", " + item.FirstName + " (" + item.OrganizationName + ")",
value: item.FathersLast,
/* edits */
fathersLast : item.FathersLast, //access as ui.item.fathersLast
mothersLast: item.MothersLast, //access as ui.item.mothersLast, etc [...]
firstName : item.FirstName,
organizationName : item.OrganizationName
//[...]
}
}));
}
});
}