A tidy autosuggesting solution
“I have a form field that autosuggests an email address, however it only works with one email address at a time. How would I go about setting it up so that when a user starts typing the autosuggest will append the emailaddress with a semicolon and then allow the user to search for anotheraddress in the same field?”
The bottom line, unless I am misguided, is that it can’t be done with the ColdFusion form tags. An autosuggestdelimiters attribute would be a really useful addition to the cfinput tag but for now, it doesn’t exist.
Hunting for the solution
This function needs to be run at some point after the page and the ajax objects have been loaded. I have it working at the moment by calling it when the input receives focus which clearly isn’t the best but isn’t going to hurt anyone (can someone tell me where it should go?)
Here is some CF code to demonstrate:
Time for bed!