Hi,
The best I can think of is that you write the URL to a Hyperlink field. You can do it like this in the Custom JS by specifying a parseFunction in your spjs.ac.textField function call:
spjs.ac.textField({
"applyTo":"projectField",
"helpText":"Start typing to search...",
...
...
...
"setFields":[{
"fromFIN":["ID","Title"],
"joinBy":"",
"toFIN":"MyHyperlinkField",
"parseFunction":"writeHyperlink",
"skipIfEmpty":false
}]
});
function writeHyperlink(a){
return [_spPageContextInfo.webAbsoluteUrl + "/Lists/ProjectList/DispForm.aspx?ID=" + a[0], a[1]];
}
Change the list name to match yours in the URL.
Unfortunately you cannot have it open in a new window / tab, and not in a dialog box either because the built in Hyperlink field doesn’t support that.
Alexander