Can anyone help?
function populateLookup(fieldSchemaName, guid, name, tableSchemaName){
$("#"+fieldSchemaName+"_name").val(name);
$("#"+fieldSchemaName).val(guid);
$("#"+fieldSchemaName+"_entityname").val(tableSchemaName);
});
populateLookup('contact', {{user.id}}, {{user.fullname}}, 'contact)