I've decided it's about time I started using cfform (3 mins in and I've already hit my first stumbling block!)
I want to have an autosuggest text input for users to choose a city. In my db I have locationnames and locationids.
e.g.
----------------------------
locationid | locationname
----------------------------
1 | London
2 | New York
3 | Paris
etc.
-----------------------------
The user will start to type the locationame - I want autosuggest to show locationanames that match, but when they submit the form I actually want the locationid to be passed.
How on Earth do I do this with cfform?
Don't ever use cfform or any other UI-related Coldfusion crap in the first place.
Take a look at the excellent Typeahead JQuery plugin from Twitter instead: http://twitter.github.io/typeahead.js/examples/